Skip to content

Commit

Permalink
Merge pull request #26 from cacoco/lat
Browse files Browse the repository at this point in the history
[release] GitHub actions logic is messy
  • Loading branch information
cacoco authored Feb 5, 2024
2 parents 8a1289a + 2c18043 commit 37dd890
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ jobs:
run: |
tag="${{ github.ref_name }}"
echo "release-version=${tag#v}" >> $GITHUB_ENV
- name: get_release_version -- saves to github output context
run: |
tag="${{ github.ref_name }}"
echo "release-version=${tag#v}" >> $GITHUB_OUTPUT
- name: Update codemeta.json version
uses: jossef/action-set-json-field@v2.1
with:
Expand Down Expand Up @@ -60,7 +56,6 @@ jobs:
git checkout ${{ github.ref_name }}
git branch -D ${{ github.ref_name }}-branch
# - name: Run GoReleaser
# if: ${{ success() }}
# uses: goreleaser/goreleaser-action@v5
# with:
# distribution: goreleaser
Expand All @@ -70,9 +65,12 @@ 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: get_release_version -- saves to github output context
run: |
tag="${{ github.ref_name }}"
echo "release-version=${tag#v}" >> $GITHUB_OUTPUT
call-codemeta-version:
needs: [goreleaser]
if: always()
uses: ./.github/workflows/codemeta-version.yaml
with:
release-version: ${{ needs.goreleaser.outputs.release-version }}
Expand Down

0 comments on commit 37dd890

Please sign in to comment.