Skip to content

Commit

Permalink
Merge pull request #2 from CHPC-UofU/update-workflows
Browse files Browse the repository at this point in the history
update github actions
  • Loading branch information
jay-mckay authored Aug 15, 2024
2 parents 6835578 + 369bff7 commit 53ef713
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 9 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release

on:
push:
tags:
- "v*"

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v5

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13 changes: 4 additions & 9 deletions .github/workflows/go.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: Go
name: Test

on:
push:
Expand All @@ -11,15 +8,13 @@ on:

jobs:

build:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

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

- name: Build
run: go build -v ./...
Expand Down

0 comments on commit 53ef713

Please sign in to comment.