Skip to content

Commit

Permalink
Add a workflow to run when a release is published
Browse files Browse the repository at this point in the history
This workflow uploads assets - single_include/upa/*.* files.

See: https://docs.github.com/en/actions/using-workflows/using-github-cli-in-workflows
  • Loading branch information
rmisev committed Nov 1, 2023
1 parent ec4e6f7 commit ccb9511
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Upload release assets

on:
release:
types: [published]

jobs:
assets:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Amalgamate source files
run: tools/amalgamate.sh

- name: Upload assets
run: gh release upload ${{ github.ref_name }} single_include/upa/*.*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ccb9511

Please sign in to comment.