Skip to content

Commit

Permalink
setup release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
marph91 committed Apr 27, 2024
1 parent 91172d2 commit e1552ea
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ jobs:
build:
name: build
runs-on: ${{ matrix.os }}
permissions:
contents: write
strategy:
fail-fast: false
matrix:
Expand All @@ -20,13 +22,13 @@ jobs:
run: pip install -r requirements-dev.txt
- name: Build executable with pyinstaller
run: python -m PyInstaller jimmy.spec
- uses: actions/upload-artifact@v4
# upload artifacts only if it's a release
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
with:
name: jimmy-${{ matrix.os }}
path: ./dist/jimmy*
- name: Smoke test
run: |
./dist/jimmy test_inputs --dry-run
./dist/jimmy test_inputs/obsidian_vault --app obsidian --dry-run
- name: Release
uses: softprops/action-gh-release@v2
# release only if there is a release tag
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
with:
files: ./dist/jimmy*

0 comments on commit e1552ea

Please sign in to comment.