Skip to content

Commit

Permalink
Auto-trigger build and upload binaries when a release is created
Browse files Browse the repository at this point in the history
  • Loading branch information
jacalata authored Mar 4, 2024
1 parent 71d36c3 commit c897906
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ name: Release-Executable
# https://anshumanfauzdar.medium.com/using-github-actions-to-bundle-python-application-into-a-single-package-and-automatic-release-834bd42e0670

on:
release:
types: [published]
push:
tags:
- '*'
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -70,3 +71,12 @@ jobs:
with:
name: ${{ matrix.OUT_FILE_NAME }}
path: ./dist/${{ matrix.TARGET }}/${{ matrix.OUT_FILE_NAME }}

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./dist/${{ matrix.TARGET }}/${{ matrix.OUT_FILE_NAME }}/
tag: ${{ github.ref_name }}
overwrite: true
promote: true

0 comments on commit c897906

Please sign in to comment.