Skip to content

Commit

Permalink
Create release_build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
referefref committed Jun 28, 2024
1 parent 2e8ecfc commit f094b8f
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release Go project

on:
push:
tags:
- "*"

permissions:
contents: write

jobs:
build:
name: sinon release
strategy:
matrix:
os: [ windows-latest ]
runs-on: ${{ matrix.os }}

steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go 1.18
uses: actions/setup-go@v4
- name: Test
run: |
go version
go mod tidy
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --clean --skip-validate
env:
GITHUB_TOKEN: ${{ secrets.GO_RELEASER_GITHUB_TOKEN }}

0 comments on commit f094b8f

Please sign in to comment.