Upload ISO to the Latest Release #3
This file contains 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: 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: | |
release: | |
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 | |
if: github.repository == 'vanilla-os/live-iso' | |
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 | |
if: github.repository == 'vanilla-os/live-iso' | |
uses: actions/attest-build-provenance@v1 | |
with: | |
subject-path: 'amd64/*.iso, amd64/*.txt' |