feat(actions): upgrade the goreleaser-action to v4 #67
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: goreleaser | |
on: | |
push: | |
tags: | |
- "*" | |
permissions: | |
contents: write | |
jobs: | |
goreleaser: | |
runs-on: ubuntu-latest | |
env: | |
DOCKER_CLI_EXPERIMENTAL: "enabled" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
submodules: true | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.20' | |
- name: Login to DockerHub | |
uses: docker/login-action@v2 | |
with: | |
password: ${{secrets.DKR_TOKEN}} | |
username: ${{secrets.DKR_USER}} | |
# - name: Setup snapcraft | |
# run: | | |
# sudo snap install snapcraft --classic | |
# echo "$SNAP_TOKEN" | snapcraft login --with - | |
# env: | |
# SNAP_TOKEN: ${{secrets.SNAP_LOGIN}} | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v4 | |
with: | |
version: latest | |
args: release --clean | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |