Skip to content

Commit

Permalink
cd: add goreleaser and release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gszr committed Jul 22, 2023
1 parent a230a64 commit c6e94c7
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

jobs:
release:
runs-on: ubuntu-latest
permissions: write-all
needs: build
if: github.ref_name == 'fix-ci'
steps:
- name: Release
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GORELEASER_CURRENT_TAG: ${{ github.ref_name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
out
dot
dist

dist/
14 changes: 14 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
builds:
- id: dot
goarch:
- arm64
- amd64
goos:
- linux
- darwin

release:
github:
owner: gszr
name: dot
target_commitish: "{{ .Commit }}"

0 comments on commit c6e94c7

Please sign in to comment.