6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-04 15:39:46 +00:00

Fix GitHub Actions to match the new single binary release

This commit is contained in:
Grzegorz Dlugoszewski
2025-08-23 23:05:01 +02:00
parent 71f62b2b97
commit 38a76d6b04
3 changed files with 7 additions and 42 deletions

View File

@@ -124,19 +124,20 @@ jobs:
go-version: '1.24'
cache: true
- name: Build binaries
- name: Build binary
run: |
go build -v -o bin/git-get ./cmd/get
go build -v -o bin/git-list ./cmd/list
go build -v -o bin/git-get ./cmd/
- name: Test binaries
- name: Test binary and symlink behavior
run: |
./bin/git-get --version
# Test symlink functionality
ln -sf git-get bin/git-list
./bin/git-list --version
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: binaries
name: binary
path: bin/
retention-days: 30

View File

@@ -1,24 +0,0 @@
name: release
on:
push:
tags:
- '*'
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GORELEASER_TOKEN }}

View File

@@ -8,7 +8,6 @@ on:
permissions:
contents: write
security-events: write
id-token: write # For SLSA provenance
jobs:
validate:
@@ -64,15 +63,4 @@ jobs:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GORELEASER_TOKEN }}
provenance:
name: Generate SLSA Provenance
needs: release
if: startsWith(github.ref, 'refs/tags/')
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v2.0.0
with:
base64-subjects: "${{ needs.release.outputs.hashes }}"
upload-assets: true
secrets:
registry-password: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GORELEASER_TOKEN }}