Skip to content

fix: snapcraft at it again, attempt to workaround parallelism issue #29

fix: snapcraft at it again, attempt to workaround parallelism issue

fix: snapcraft at it again, attempt to workaround parallelism issue #29

Workflow file for this run

name: release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-r[0-9]+"
jobs:
goreleaser:
runs-on: ubuntu-latest
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Install Snapcraft
uses: samuelmeuli/action-snapcraft@v2
- name: Spancraft parallelism hack
run: |
mkdir -p /home/runner/.cache/snapcraft/download
mkdir -p /home/runner/.cache/snapcraft/stage-packages
- name: Install upx
run: sudo apt install upx -y
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: 'latest'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.PUBLISHER_TOKEN }}
AUR_KEY: ${{ secrets.AUR_KEY }}