Skip to content

Commit

Permalink
feat: add ISO release workflow
Browse files Browse the repository at this point in the history
Signed-off-by: K.B.Dharun Krishna <[email protected]>
  • Loading branch information
kbdharun committed Aug 22, 2024
1 parent 67f91b1 commit 087d5b5
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Upload ISO to the Latest Release

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0' # Schedule to run the workflow weekly at midnight UTC every Sunday.

jobs:
download_extract_upload:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
attestations: write

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Download Vanilla OS Latest ZIP
run: wget https://download.vanillaos.org/latest.zip -O latest.zip

- name: Unzip the downloaded file
run: unzip latest.zip

- name: Upload ISO and TXT files to Release
working-directory: amd64
run: |
gh release upload "2.0" *.iso *.txt --clobber --repo vanilla-os/live-iso
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Attest generated files
id: attest
uses: actions/attest-build-provenance@v1
with:
subject-path: 'amd64/*.iso, amd64/*.txt'

0 comments on commit 087d5b5

Please sign in to comment.