Skip to content

ci: version bump to v6.6.0 #103

ci: version bump to v6.6.0

ci: version bump to v6.6.0 #103

Workflow file for this run

name: "Release"
on:
push:
tags: 'v*'
jobs:
build-job:
runs-on: ${{ matrix.os }}
name: "Release (${{ matrix.os }})"
strategy:
matrix:
os: [ubuntu-latest, windows-2019, macos-11]
steps:
- name: "Setup node"
uses: actions/setup-node@v1
with:
node-version: '16'
- name: "Checkout source code"
uses: "actions/checkout@v2"
- name: "Install modules"
run: "npm run install:ci"
- name: "Test"
run: "npm run jest:ci"
- name: "Generate build information json"
run: "node generateInfo.js"
- name: "Install distutils"
run: "pip install setuptools"
- name: "Build release, create GitHub release and upload assets (electron-builder)"
run: "npm run release"
env:
GH_TOKEN: ${{ github.token }}
# create release if it doesn't exist
CI_BUILD_TAG: 1
- name: Gets latest created release info
id: latest_release_info
uses: jossef/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
- name: "Package JSON"
run: |
echo "INFO_VERSION=$(jq -r .version ./src/info.json)" >> $GITHUB_ENV
echo "INFO_BRANCH=$(jq -r .branch ./src/info.json)" >> $GITHUB_ENV
echo "INFO_TIMESTAMP=$(jq -r .timestamp ./src/info.json)" >> $GITHUB_ENV
- uses: getsentry/action-release@v1
if: matrix.os == 'ubuntu-latest'
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: mtgatool
SENTRY_PROJECT: desktop
with:
environment: 'production'
version: ${{ env.INFO_VERSION }}
sourcemaps: 'build/static/js/'
- name: Create installer
if: matrix.os == 'ubuntu-latest'
run: |
cp dist/*.AppImage linux-installer
cd linux-installer
chmod +x *.AppImage
chmod +x *.sh
chmod +x mtga-tracker-daemon/*.sh
chmod +x mtga-tracker-daemon/bin/mtga-tracker-daemon
tar czvf "../dist/mtgatool-desktop-linux-installer.tar.gz" *
cd ..
- name: Upload Release Asset
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.latest_release_info.outputs.upload_url }}
asset_path: ./dist/mtgatool-desktop-linux-installer.tar.gz
asset_name: mtgatool-desktop-linux-installer.tar.gz
asset_content_type: application/gzip