Skip to content

Commit

Permalink
chore: ci trigger publish go modules
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfreska committed Jan 30, 2024
1 parent efc40eb commit 4fcf7b9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/release-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,23 @@ jobs:
# If no changesets were detected in the PR prep step then we are in
# release/publish mode. Check for and publish any new versions to NPM.
- name: Publish to NPM and create GitHub releases
id: changesets_release
if: steps.changesets.outputs.hasChangesets == 'false'
uses: changesets/action@v1
with:
publish: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Release Go modules
# if a release was published, release the Go modules
if: steps.changesets_release.outputs.published == 'true'
run: |
curl \
-X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/SiaFoundation/web/actions/workflows/release-go.yml/dispatches \
-d '{"ref":"main"}'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4fcf7b9

Please sign in to comment.