Skip to content

Commit

Permalink
Merge pull request #12 from noahstreller/fix/ci-patch
Browse files Browse the repository at this point in the history
noahstreller authored Aug 29, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents fb9aad8 + 370f483 commit 63350dc
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ name: Lint, build and upload Igitt

on:
push:
branches: ["main"]
# branches: ["main"]
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
pull_request:
@@ -42,8 +42,25 @@ jobs:
- name: Test
run: go test -v ./...

buildStatusCheck:
if: github.event_name == 'pull_request'
runs-on: self-hosted
needs: [lint, test]
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.23"

- name: Build
run: |
go build -o /dev/null ./cmd/igitt;
build:
needs: [lint, test]
if: startsWith(github.ref, 'refs/tags/')

# run on self-hosted runner to reduce usage quota
runs-on: self-hosted
@@ -112,6 +129,7 @@ jobs:
files: |
igitt-*
tag_name: ${{ env.LATEST_TAG }}
token: ${{ secrets.GITHUB_TOKEN }}
name: "Automatic Pre-Release: ${{ env.LATEST_TAG }}-${{ env.SHORT_COMMIT }}"
body: |
This is an automatic pre-release build.

0 comments on commit 63350dc

Please sign in to comment.