Skip to content

Commit

Permalink
feat(ci): auto release
Browse files Browse the repository at this point in the history
  • Loading branch information
NX-Official committed Jul 30, 2024
1 parent 5d8f2bf commit 1fbdc42
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docker-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
steps:
- name: Check out the code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/run-goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release Pipeline

on:
push:
branches:
- main
tags:
- 'v*'

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: 2.1.0
args: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1fbdc42

Please sign in to comment.