Skip to content

Commit

Permalink
ci: Adds action output
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Hui committed Feb 9, 2024
1 parent 203578e commit cc2c401
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
contents: write
if: ${{ github.ref == 'refs/heads/37-feat-semver' }}
outputs:
release: ${{ steps.release}}
release: ${{ steps.release.outputs.release }}
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down Expand Up @@ -68,3 +68,9 @@ jobs:
run: |
npx semantic-release@23
- name: Publish package distributions to GitHub Releases
id: github-release
if: steps.release.outputs.release == 'true'
uses: python-semantic-release/upload-to-gh-release@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
9 changes: 9 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"branches": [
"main"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
Expand All @@ -8,6 +11,12 @@
"prepareCmd": "python semantic_release_prepare.py ${nextRelease.version} ${branch.name} src/vers.hpp"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "echo 'release=true' >> \"$GITHUB_OUTPUT\""
}
],
[
"@semantic-release/changelog",
{
Expand Down

0 comments on commit cc2c401

Please sign in to comment.