Skip to content

Commit

Permalink
ci: added release job to build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Jul 14, 2022
1 parent aa21904 commit 392ff09
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,25 @@ jobs:
CERTIFICATE_MACOS_P12_PASSWORD: ${{ secrets.CERTIFICATE_MACOS_P12_PASSWORD }}

- name: Upload packages
uses: actions/upload-artifact@v2-preview
uses: actions/upload-artifact@v3
with:
name: builds-${{ runner.os }}-py${{ matrix.python_version }}
path: dist/activitywatch-*.*

release:
needs: build
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
# Will download all artifacts to path
- name: Download build artifacts
uses: actions/download-artifact@v3
with:
path: dist

# TODO: Build and include release notes
- name: Release
uses: softprops/action-gh-release@v1
with:
files: dist/activitywatch-*.*

0 comments on commit 392ff09

Please sign in to comment.