Skip to content

Commit

Permalink
Support any artifact type & remove deprecated calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidtw committed Mar 31, 2024
1 parent 4586bd9 commit b4b3ceb
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ jobs:
gecho " order: 9999"
gecho ""
gecho "sboms:"
gecho " - artifacts: archive"
gecho " - artifacts: any"
gecho ""
- name: Generate the library .goreleaser.yml file
Expand Down Expand Up @@ -805,7 +805,7 @@ jobs:
fi
if [[ "${{ inputs.release-skip-publish }}" == "--skip-publish" ]]; then
gecho " skip_push: true"
gecho " skip_push: true"
fi
gecho " dockerfile: '${{ inputs.release-docker-file }}'"
Expand Down Expand Up @@ -987,14 +987,21 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Update --skip-publish if needed
if: |
${{ inputs.release-skip-publish }} == "--skip-publish"
shell: bash
run: |
echo "SKIP_PUBLISH=--skip-publish" >> $GITHUB_ENV
- name: Generate the Release
if: success() && startsWith(github.ref, 'refs/tags/')
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5.0.0
with:
distribution: goreleaser
workdir: ${{ inputs.working-directory }}
version: latest
args: release --clean --skip-validate ${{ inputs.release-skip-publish }}
args: release --clean --skip=validate ${{ env.SKIP_PUBLISH }}
env:
GORELEASER_CURRENT_TAG: ${{ github.ref_name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit b4b3ceb

Please sign in to comment.