Skip to content

Commit

Permalink
Create release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
taukakao committed Jul 28, 2024
1 parent dd9c735 commit 36e002d
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Release

on:
push:
tags:
- '*'

jobs:
release:
runs-on: ubuntu-latest
container:
image: ghcr.io/vanilla-os/pico:main
volumes:
- /proc:/proc
- /:/run/host
options: --privileged -it
permissions:
contents: write # to create and 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: De-bloat stock image
run: |
rm -r /run/host/usr/share/dotnet
rm -r /run/host${{ runner.tool_cache }}
- name: Install needed packages
run: apt update && apt install debootstrap -y

- name: Build ISO
run: ./build.sh etc/terraform.conf

- uses: actions/upload-artifact@v4
with:
name: Vanilla OS 2 Orchid
path: builds/

- uses: softprops/action-gh-release@v2
with:
token: "${{ secrets.GITHUB_TOKEN }}"
tag_name: "${{ github.ref_name }}"
prerelease: true
generate_release_notes: false
name: "Vanilla OS ${{ github.ref_name }} Orchid"
files: |
builds/
- name: Attest Release Files
id: attest
uses: actions/attest-build-provenance@v1
with:
subject-path: 'builds/'

0 comments on commit 36e002d

Please sign in to comment.