forked from ubuntucinnamon/iso-builder-devel
-
-
Notifications
You must be signed in to change notification settings - Fork 99
41 lines (34 loc) · 1.07 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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'