chore: update publish pipeline
[skip ci]
This commit is contained in:
parent
a1d1750a79
commit
d683de944b
1 changed files with 11 additions and 9 deletions
20
.github/workflows/publish.yaml
vendored
20
.github/workflows/publish.yaml
vendored
|
|
@ -81,15 +81,16 @@ jobs:
|
|||
gpg --import ~/private.key.pem
|
||||
rm ~/private.key.pem
|
||||
|
||||
# - name: Run GoReleaser with SNAPSHOT
|
||||
# if: github.event_name == 'workflow_dispatch'
|
||||
# id: goreleaser
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{ env.FORGEJO_TOKEN }}
|
||||
# GPG_FINGERPRINT: ${{ secrets.GPG_FINGERPRINT }}
|
||||
# uses: goreleaser/goreleaser-action@v7
|
||||
# with:
|
||||
- name: Run GoReleaser
|
||||
if: github.event_name == 'workflow_dispatch'
|
||||
id: goreleaser
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ env.FORGEJO_TOKEN }}
|
||||
GPG_FINGERPRINT: ${{ secrets.GPG_FINGERPRINT }}
|
||||
uses: goreleaser/goreleaser-action@v7
|
||||
with:
|
||||
# args: release --skip publish --clean --snapshot
|
||||
args: release --skip publish --clean
|
||||
|
||||
- name: Run GoReleaser
|
||||
if: github.event_name != 'workflow_dispatch'
|
||||
|
|
@ -108,8 +109,9 @@ jobs:
|
|||
- name: Determine version
|
||||
id: get_version
|
||||
run: |
|
||||
set -e
|
||||
VERSION=$(jq -r .version < dist/metadata.json)
|
||||
echo "version=${VERSIO)N}" >> "$GITHUB_OUTPUT"
|
||||
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Prepare provider directory structure
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue