Skip to content

Commit

Permalink
Add bumpr
Browse files Browse the repository at this point in the history
  • Loading branch information
choffmeister committed Nov 13, 2023
1 parent 17c8827 commit 54d25c2
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 18 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/bumpr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: bumpr
on:
push:
branches:
- main
jobs:
bumpr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.BUMPER_APP_ID }}
private_key: ${{ secrets.BUMPER_APP_PRIVATE_KEY }}
id: generate-token
- uses: haya14busa/action-bumpr@v1
with:
github_token: ${{ steps.generate-token.outputs.token }}
default_bump_level: patch
20 changes: 10 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
name: release
on:
push:
tags:
- "*"
push:
tags:
- "*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v2
- uses: actions/setup-go@v4
with:
go-version: 1.19.x
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
go-version: 1.21.x
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: airfocusio
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13 changes: 8 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: test
on:
push:
branches:
- "*"
- main
pull_request:
branches:
- main
Expand All @@ -12,8 +12,11 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v2
- uses: actions/setup-go@v4
with:
go-version: 1.19.x
- uses: actions/checkout@v2
- run: make test
go-version: 1.21.x
- uses: actions/checkout@v4
- name: Build sources
run: go build ./...
- name: Run tests
run: go test ./... -v
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test-cover:
go tool cover -html=coverage.out

build:
goreleaser release --rm-dist --skip-publish --snapshot
goreleaser release --clean --skip=publish --snapshot

release:
goreleaser release --rm-dist
goreleaser release --clean
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/airfocusio/go-template

go 1.19
go 1.21

require (
github.com/Masterminds/sprig v2.22.0+incompatible
Expand Down

0 comments on commit 54d25c2

Please sign in to comment.