Skip to content

Release

Release #3

Workflow file for this run

name: Release
on:
release:
types: ["published"]
jobs:
release:
runs-on: ${{ matrix.platform }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
run: docker run --rm -v "${PWD}:/src/" --env SPECFILE=./schwifty.spec batonogov/pyinstaller-${{ matrix.os == 'ubuntu-latest' && 'linux' || 'osx' }}
- name: Test
run: dist/schwifty "DE89370400440532013000"
- name: Compress binary
run: tar -czvf schwifty.tar.gz -C dist/ schwifty
- name: Upload release asset
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./schwifty.tar.gz
asset_name: schwifty-${{ matrix.os == 'ubuntu-latest' && 'linux' || 'macos' }}.tar.gz
asset_content_type: application/gzip