diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 771b589..767f4ed 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/release-simple.yml b/.github/workflows/release-simple.yml deleted file mode 100644 index c01804e..0000000 --- a/.github/workflows/release-simple.yml +++ /dev/null @@ -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 }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5250431..b0dbd12 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GORELEASER_TOKEN }} \ No newline at end of file