Run build-package workflow on 'release: published'

Should work with prereleases and drafts too.
pull/561/head
jackun 3 years ago
parent 6824ccb439
commit db34d1ddd8
No known key found for this signature in database
GPG Key ID: 119DB3F1D05A9ED3

@ -1,11 +1,11 @@
name: Build release package name: Build release package
on: on:
release: release:
types: ["created"] types: [published]
push: # push:
tags: ["v*"] # tags: ["v*"]
branches: # branches:
- main # - main
workflow_dispatch: workflow_dispatch:
jobs: jobs:
@ -43,7 +43,7 @@ jobs:
./build-source.sh ./build-source.sh
./build.sh build package release ./build.sh build package release
- name: Upload release - name: Upload release
if: ${{ github.event_name == 'release' && github.event.action == 'created' }} if: ${{ github.event_name == 'release' && github.event.action == 'published' }}
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: | run: |

Loading…
Cancel
Save