chore: update publish pipeline #91
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
|
gpg --import ~/private.key.pem
|
||||||
rm ~/private.key.pem
|
rm ~/private.key.pem
|
||||||
|
|
||||||
# - name: Run GoReleaser with SNAPSHOT
|
- name: Run GoReleaser
|
||||||
# if: github.event_name == 'workflow_dispatch'
|
if: github.event_name == 'workflow_dispatch'
|
||||||
# id: goreleaser
|
id: goreleaser
|
||||||
# env:
|
env:
|
||||||
# GITHUB_TOKEN: ${{ env.FORGEJO_TOKEN }}
|
GITHUB_TOKEN: ${{ env.FORGEJO_TOKEN }}
|
||||||
# GPG_FINGERPRINT: ${{ secrets.GPG_FINGERPRINT }}
|
GPG_FINGERPRINT: ${{ secrets.GPG_FINGERPRINT }}
|
||||||
# uses: goreleaser/goreleaser-action@v7
|
uses: goreleaser/goreleaser-action@v7
|
||||||
# with:
|
with:
|
||||||
# args: release --skip publish --clean --snapshot
|
# args: release --skip publish --clean --snapshot
|
||||||
|
args: release --skip publish --clean
|
||||||
|
|
||||||
- name: Run GoReleaser
|
- name: Run GoReleaser
|
||||||
if: github.event_name != 'workflow_dispatch'
|
if: github.event_name != 'workflow_dispatch'
|
||||||
|
|
@ -108,8 +109,9 @@ jobs:
|
||||||
- name: Determine version
|
- name: Determine version
|
||||||
id: get_version
|
id: get_version
|
||||||
run: |
|
run: |
|
||||||
|
set -e
|
||||||
VERSION=$(jq -r .version < dist/metadata.json)
|
VERSION=$(jq -r .version < dist/metadata.json)
|
||||||
echo "version=${VERSIO)N}" >> "$GITHUB_OUTPUT"
|
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Prepare provider directory structure
|
- name: Prepare provider directory structure
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue