Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
gr211 committed Jun 20, 2024
1 parent 69adde9 commit 708a21f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 5 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Go Release

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
goos: [linux]
goarch: [amd64]

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22'

- name: Build
run: |
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build
5 changes: 0 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ name: Go Release

on:
push:
branches:
- main
tags:
- 'v*.*.*' # Matches v1.0.0, v2.1.3, etc.
- 'latest'

jobs:
build:
Expand All @@ -33,7 +30,6 @@ jobs:
echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
- name: Create Release
if: startsWith(github.ref, 'refs/tags/v')
id: create_release
uses: actions/create-release@v1
env:
Expand All @@ -45,7 +41,6 @@ jobs:
prerelease: false

- name: Upload Release Assets
if: startsWith(github.ref, 'refs/tags/v')
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 708a21f

Please sign in to comment.