diff options
author | Francis Lavoie <lavofr@gmail.com> | 2020-06-08 14:21:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-08 12:21:20 -0600 |
commit | 7211101c528dfaf483d1dc826f836a98008a4c9b (patch) | |
tree | 8c20268da76ded81c7b7ad8f4fefbef644afb7c2 /.github/workflows/release_published.yml | |
parent | 90dba172cbfb2527395f7c52af2987d81cab0a99 (diff) |
ci: Fix gemfury upload condition, move triggers to publish event (#3483)
Diffstat (limited to '.github/workflows/release_published.yml')
-rw-r--r-- | .github/workflows/release_published.yml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/release_published.yml b/.github/workflows/release_published.yml new file mode 100644 index 0000000..cf47e73 --- /dev/null +++ b/.github/workflows/release_published.yml @@ -0,0 +1,34 @@ +name: Release Published + +# Event payload: https://developer.github.com/webhooks/event-payloads/#release +on: + release: + types: [published] + +jobs: + release: + name: Release Published + strategy: + matrix: + os: [ ubuntu-latest ] + runs-on: ${{ matrix.os }} + + steps: + + # See https://github.com/peter-evans/repository-dispatch + - name: Trigger event on caddyserver/dist + uses: peter-evans/repository-dispatch@v1 + with: + token: ${{ secrets.REPO_DISPATCH_TOKEN }} + repository: caddyserver/dist + event-type: release-tagged + client-payload: '{"tag": "${{ github.release.tag_name }}"}' + + - name: Trigger event on caddyserver/caddy-docker + uses: peter-evans/repository-dispatch@v1 + with: + token: ${{ secrets.REPO_DISPATCH_TOKEN }} + repository: caddyserver/caddy-docker + event-type: release-tagged + client-payload: '{"tag": "${{ github.release.tag_name }}"}' + |