feat: allow empty package list #13
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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@v5 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| - name: Vendor dependencies | |
| run: | | |
| go get | |
| go mod vendor | |
| tar czvf vib-vendored-deps.tar.gz * | |
| - name: Upload a Release Asset | |
| if: github.repository == 'Vanilla-OS/Vib' | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: vib-vendored-deps.tar.gz | |
| - name: Attest generated files | |
| if: github.repository == 'Vanilla-OS/Vib' | |
| id: attest | |
| uses: actions/attest-build-provenance@v2 | |
| with: | |
| subject-path: 'vib-vendored-deps.tar.gz' |