Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: set up a GitHub Actions workflow to release minimock #83

Merged
merged 2 commits into from
Jan 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Release
on:
push:
tags: [v*]
permissions:
contents: write # To create releases
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
go-version: '1.21.5'
- uses: goreleaser/[email protected]
with:
version: v1.23.0
args: release --clean
env:
GITHUB_TOKEN: ${{ github.token }}
3 changes: 0 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
project_name: minimock
before:
hooks:
- make all
Copy link
Contributor Author

@suzuki-shunsuke suzuki-shunsuke Jan 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the hook to resolve the error.

lint and test are run by pull request CI.

builds:
-
main: ./cmd/minimock/
Expand Down