Commit fac8772c
fac8772c2f33Merged
Sviatoslav Dumchenko <[email protected]> ยท 3 years ago ยท 3 files ยท ~3 modified
Description
chore(ci): tune goreleaser
Details
- Commit
- fac8772c2f33
- Parent
- 52a8fadc71d2
.github/workflows/goreleaser-test.ymlmodifiedView file
@@ -9,7 +9,7 @@
99
1010
jobs:1111
goreleaser:12-
runs-on: ubuntu-latest12+
runs-on: macos-latest1313
permissions:1414
contents: read1515
steps:@@ -22,3 +22,63 @@
2222
with:2323
version: latest2424
args: check25+
26+
goreleaser-test:27+
runs-on: macos-latest28+
permissions:29+
contents: write # to create release30+
issues: write # to close milestone31+
packages: write # to upload package32+
needs:33+
- tagger34+
- generate-changelog35+
steps:36+
- uses: actions/checkout@v337+
with:38+
fetch-depth: 039+
40+
- name: Setup QEMU41+
uses: docker/setup-qemu-action@v242+
43+
- name: Setup Docker Buildx44+
uses: docker/setup-buildx-action@v245+
46+
- name: Login to GitHub Container Registry47+
uses: docker/login-action@v248+
with:49+
registry: ghcr.io50+
username: ${{ github.actor }}51+
password: ${{ secrets.GITHUB_TOKEN }}52+
53+
- name: Login to Docker Hub54+
uses: docker/login-action@v255+
with:56+
username: ${{ secrets.DOCKERHUB_USER }}57+
password: ${{ secrets.DOCKERHUB_TOKEN }}58+
59+
- uses: actions/setup-go@v460+
with:61+
go-version: "1.20"62+
63+
- name: Cache Go modules64+
uses: actions/cache@v365+
with:66+
path: |67+
~/.cache/go-build68+
~/go/pkg/mod69+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}70+
restore-keys: |71+
${{ runner.os }}-go-72+
73+
- name: Run GoReleaser74+
uses: goreleaser/goreleaser-action@v475+
with:76+
version: latest77+
args: release --skip-validate --clean --skip-publish78+
env:79+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}80+
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.CR_PAT }}81+
TELEGRAM_TOKEN: ${{ secrets.BOT_TOKEN }}82+
83+
- name: Generate schema.json84+
run: ./dist/helmwave_darwin_amd64_v1/helmwave schema > schema.json.github/workflows/goreleaser.ymlmodifiedView file
Loading diffโฆ
.goreleaser.ymlmodifiedView file
Loading diffโฆ