Skip to content

Commit

Permalink
Initial commit of release (#1553) (#1556)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Warehime authored Jun 23, 2023
1 parent 3528a6f commit 61f0d13
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: goreleaser

on:
push:
tags:
- 'v3.**'

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.3
with:
fetch-depth: 0
- run: git fetch --force --tags

- name: go dependency
uses: actions/setup-go@v4.0.1
with:
go-version-file: 'go.mod'

- name: Setup QEMU (docker multi-arch dependency)
uses: docker/setup-qemu-action@v2

- name: Setup Docker Buildx (docker multi-arch dependency)
uses: docker/setup-buildx-action@v2

- name: dockerhub-login
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 61f0d13

Please sign in to comment.