Bumps [actions/attest-build-provenance](https://github.com/actions/attest-build-provenance) from 1 to 2. - [Release notes](https://github.com/actions/attest-build-provenance/releases) - [Changelog](https://github.com/actions/attest-build-provenance/blob/main/RELEASE.md) - [Commits](https://github.com/actions/attest-build-provenance/compare/v1...v2) --- updated-dependencies: - dependency-name: actions/attest-build-provenance dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- '*'
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
REGISTRY_USER: ${{ github.actor }}
|
|
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write # Allow actions to create release
|
|
attestations: write # To create and write attestations
|
|
id-token: write # Additional permissions for the persistence of the attestations
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- uses: vanilla-os/vib-gh-action@v0.8.1
|
|
with:
|
|
recipe: 'recipe.yml'
|
|
plugins: 'Vanilla-OS/vib-fsguard:v1.5.3'
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: Containerfile
|
|
path: Containerfile
|
|
|
|
- name: Create Release
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: gh release create "${{ github.ref_name }}" --generate-notes Containerfile
|
|
|
|
- name: Attest Release Files
|
|
id: attest
|
|
uses: actions/attest-build-provenance@v2
|
|
with:
|
|
subject-path: 'Containerfile'
|