fix: fix get online RAUC path fail (#177) #129
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: | |
- v*.*.* | |
permissions: | |
contents: write | |
jobs: | |
goreleaser: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Install dependencies for cross-compiling | |
run: | | |
sudo apt update | |
sudo apt-get --no-install-recommends --yes install \ | |
upx libc6-dev-amd64-cross \ | |
gcc-aarch64-linux-gnu libc6-dev-arm64-cross \ | |
gcc-arm-linux-gnueabihf libc6-dev-armhf-cross | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Fetch all tags | |
run: git fetch --force --tags | |
- name: Get version | |
id: get_version | |
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.20" | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v4 | |
with: | |
# either 'goreleaser' (default) or 'goreleaser-pro' | |
distribution: goreleaser | |
version: v1.26.2 | |
args: release --rm-dist | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution | |
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} |