Skip to content

Commit

Permalink
ci: fix install snapcraft cli
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelgautier committed Jan 18, 2025
1 parent 879c6e2 commit c99383c
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
publish:
needs: test
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
# if: startsWith(github.ref, 'refs/tags/')

permissions:
contents: write
Expand Down Expand Up @@ -94,10 +94,13 @@ jobs:
- name: Install Snapcraft
run: |
sudo apt-get --quiet update
sudo apt-get --no-install-suggests --no-install-recommends --quiet --yes install musl-tools snapcraft
sudo snap refresh snapcraft --revision 11040
sudo apt-get --no-install-suggests --no-install-recommends --quiet --yes install musl-tools snapd
sudo snap install snapcraft --classic
snapcraft status vulnapi
mkdir -p $HOME/.cache/snapcraft/download
mkdir -p $HOME/.cache/snapcraft/stage-packages
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}

- name: install chocolatey
run: |
Expand All @@ -110,12 +113,12 @@ jobs:
env:
CHOCOLATEY_VERSION: 2.2.2

- uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
CHOCOLATEY_API_KEY: ${{ secrets.CHOCOLATEY_API_KEY }}
# - uses: goreleaser/goreleaser-action@v6
# with:
# distribution: goreleaser
# version: latest
# args: release --clean
# env:
# GITHUB_TOKEN: ${{ secrets.PAT }}
# SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
# CHOCOLATEY_API_KEY: ${{ secrets.CHOCOLATEY_API_KEY }}

0 comments on commit c99383c

Please sign in to comment.