Skip to content

Commit

Permalink
add releaser
Browse files Browse the repository at this point in the history
  • Loading branch information
ren3gadem4rm0t committed Aug 22, 2024
1 parent 74a3090 commit 9d05536
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 10 deletions.
30 changes: 20 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,6 @@ jobs:
steps:
- uses: actions/checkout@v4

# - name: Cache Go modules
# uses: actions/cache@v4
# with:
# path: |
# ~/go/pkg/mod
# ~/.cache/go-build
# key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
# restore-keys: |
# ${{ runner.os }}-go-

- name: Set up Go
uses: actions/setup-go@v5
with:
Expand Down Expand Up @@ -64,3 +54,23 @@ jobs:

- name: Cleanup
run: make clean

release:
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ^1.22

- name: Install GoReleaser
run: go install github.com/goreleaser/goreleaser@latest

- name: Run GoReleaser
run: goreleaser release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
coverage*
/.coverage/
/dist/

# Created by https://www.toptal.com/developers/gitignore/api/certificates,ssh,dotenv,go,compressed,visualstudiocode,macos,windows,linux
# Edit at https://www.toptal.com/developers/gitignore?templates=certificates,ssh,dotenv,go,compressed,visualstudiocode,macos,windows,linux
Expand Down
29 changes: 29 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: 2

project_name: cef-parser-go

builds:
- skip: true

archives:
- format: tar.gz
files:
- LICENSE
- README.md
- go.mod
- parser/**/*.go

changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'

release:
github:
owner: ren3gadem4rm0t
name: cef-parser-go
draft: false
prerelease: false

0 comments on commit 9d05536

Please # to comment.