Skip to content

Commit

Permalink
Merge pull request #298 from SiaFoundation/chris/repository-dispatch
Browse files Browse the repository at this point in the history
Add dispatch step to publish.yml for triggering an update of homebrew formula and .deb package
  • Loading branch information
n8maninger authored Feb 7, 2024
2 parents 8feb598 + ce05f29 commit 9153e4b
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,4 +212,29 @@ jobs:
- uses: actions/upload-artifact@v3
with:
name: hostd
path: release/
path: release/
dispatch:
if: startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, 'rc')
needs: [ docker, build-linux, build-mac, build-windows ]
strategy:
matrix:
repo: ['siafoundation/homebrew-sia', 'siafoundation/linux']
runs-on: ubuntu-latest
steps:
- name: Extract Tag Name
id: get_tag
run: echo "::set-output name=tag_name::${GITHUB_REF#refs/tags/}"

- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.PAT_REPOSITORY_DISPATCH }}
repository: ${{ matrix.repo }}
event-type: release-tagged
client-payload: >
{
"description": "Hostd: A host for Sia",
"tag": "${{ steps.get_tag.outputs.tag_name }}",
"project": "hostd",
"workflow_id": "${{ github.run_id }}"
}

0 comments on commit 9153e4b

Please sign in to comment.