Skip to content

Commit

Permalink
feat: Add workflow to release source tarball with vendored deps
Browse files Browse the repository at this point in the history
  • Loading branch information
axtloss committed Oct 9, 2024
1 parent df0b78f commit 425d6d3
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/vendored-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Vendored Source tarball

on:
push:
tags:
- 'v*'

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write # to upload assets to releases
attestations: write # to upload assets attestation for build provenance
id-token: write # grant additional permission to attestation action to mint the OIDC token permission

steps:
- uses: actions/checkout@v4

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

- name: Vendor dependencies
run: |
go get
go mod vendor
tar cvf vib-vendored-deps.tar.xz *
- name: Upload a Release Asset
if: github.repository == 'Vanilla-OS/Vib'
uses: softprops/action-gh-release@v2
with:
files: vib-vendored-deps.tar.xz

- name: Attest generated files
if: github.repository == 'Vanilla-OS/Vib'
id: attest
uses: actions/attest-build-provenance@v1
with:
subject-path: 'vib-vendored-deps.tar.xz'

0 comments on commit 425d6d3

Please sign in to comment.