Skip to content

Commit

Permalink
Merge pull request #21 from cacoco/cacoco/AnotherAttempt
Browse files Browse the repository at this point in the history
[release] testing, skip running goreleaser for tag
  • Loading branch information
cacoco authored Feb 5, 2024
2 parents 97c7a4c + f46925c commit 2f94235
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/codemeta-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
if: ${{ inputs.release-version }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: main
- name: Set up Git Config
run: |
git config user.name "goreleaserbot"
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,20 @@ jobs:
# delete the temporary branch
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
version: latest
args: release --clean
env:
# 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: Run GoReleaser
# if: ${{ success() }}
# uses: goreleaser/goreleaser-action@v5
# with:
# distribution: goreleaser
# version: latest
# args: release --clean
# env:
# # 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 }}
call-codemeta-version:
needs: goreleaser
uses: cacoco/codemetagenerator/.github/workflows/codemeta-version.yaml@main
uses: ./.github/workflows/codemeta-version.yaml
with:
release-version: ${{ needs.goreleaser.outputs.release-version }}
secrets: inherit

0 comments on commit 2f94235

Please sign in to comment.