Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add workflow to release source tarball with vendored deps #116

Merged
merged 1 commit into from
Oct 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'
Loading