diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a02fa67..8d60134 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,27 +6,28 @@ on: jobs: release: - runs-on: ubuntu-latest + runs-on: ${{ matrix.platform }} strategy: matrix: - platform: [linux, osx] + os: [ubuntu-latest, macos-latest] steps: - name: Checkout code uses: actions/checkout@v4 - - name: Build linux image - run: docker run --rm -v "${PWD}:/src/" --env SPECFILE=./schwifty.spec batonogov/pyinstaller-${{ matrix.platform }} + - name: Build + run: docker run --rm -v "${PWD}:/src/" --env SPECFILE=./schwifty.spec batonogov/pyinstaller-${{ matrix.os == 'ubuntu-latest' && 'linux' || 'osx' }} - - name: Test linux image + - name: Test run: dist/schwifty "DE89370400440532013000" - name: Compress binary - run: tar -czvf schwifty-${{ matrix.platform }}.tar.gz -C dist/ schwifty + run: tar -czvf schwifty.tar.gz -C dist/ schwifty - - uses: shogo82148/actions-upload-release-asset@v1 + - name: Upload release asset + uses: shogo82148/actions-upload-release-asset@v1 with: upload_url: ${{ github.event.release.upload_url }} - asset_path: ./schwifty-${{ matrix.platform }}.tar.gz - asset_name: schwifty-${{ matrix.platform }}.tar.gz + asset_path: ./schwifty.tar.gz + asset_name: schwifty-${{ matrix.os == 'ubuntu-latest' && 'linux' || 'macos' }}.tar.gz asset_content_type: application/gzip \ No newline at end of file