Skip to content

Commit

Permalink
Merge pull request #13 from cacoco/cacoco/FixRelease
Browse files Browse the repository at this point in the history
[release] simplify version updating
  • Loading branch information
cacoco authored Feb 5, 2024
2 parents 344f9d1 + b0addac commit b778582
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,6 @@ jobs:
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- name: Set up Git Config
run: |
git config user.name "goreleaserbot"
git config user.email "<bot@goreleaser.com>"
- name: Install jj
uses: jaxxstorm/action-install-gh-release@v1.10.0
with: # Grab the latest version
repo: tidwall/jj
arch: amd64
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
Expand All @@ -39,9 +30,14 @@ jobs:
# need to push to cacoco/homebrew-tap; use CACOCO_TOKEN instead of default GITHUB_TOKEN
GITHUB_TOKEN: ${{ secrets.CACOCO_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
- name: Set up Git Config
if: ${{ success() }}
run: |
git config user.name "goreleaserbot"
git config user.email "<bot@goreleaser.com>"
- name: Update codemeta.json version
if: ${{ success() }}
run: |
jj -i codemeta.json -v 0.47.3 version -o codemeta.json
echo "`jq '.version="${{ github.ref_name }}"' codemeta.json`" > codemeta.json
git commit -am "Update codemeta.json version"
git push origin main

0 comments on commit b778582

Please sign in to comment.