Skip to content

Commit

Permalink
add ci that allows for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
axtloss committed Aug 24, 2024
1 parent f324006 commit d4b6dcc
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Vib Build
on:
push:
branches: [ "main" ]
pull-request:
branches: [ "main" ]
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -33,7 +35,6 @@ jobs:
- name: Build the Docker image
run: |
sudo chmod 777 plugins/*
sudo ls -al plugins/
sudo su -c "./vib compile --runtime podman"
sudo chmod 777 genimg/build/vanilla_installer.iso
Expand Down
27 changes: 21 additions & 6 deletions .github/workflows/vib-pr.yml → .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Vib PR

on:
pull_request:
branches: [ "main" ]

push:
tags:
- "*"

jobs:

Expand Down Expand Up @@ -39,8 +39,23 @@ jobs:
sudo su -c "./vib compile --runtime podman"
sudo chmod 777 genimg/build/vanilla_installer.iso
- name: generate checksums
run: |
cd genimg/build
sha512sum vanilla_installer.iso > ../../vanilla_installer.iso.DIGESTS
sha256sum vanilla_installer.iso > ../../vanilla_installer.iso.DIGESTS
md5sum vanilla_installer.iso >> ../../vanilla_installer.iso.DIGESTS
- name: Upload iso
uses: actions/upload-artifact@v4
if: github.repository == 'Vanilla-OS/installer-image'
uses: softprops/action-gh-release@v2
with:
files: |
genimg/build/vanilla_installer.iso
- name: Attest generated files
if: github.repository == 'Vanilla-OS/installer-image'
id: attest
uses: actions/attest-build-provenance@v1
with:
Name: iso
Path: genimg/build/vanilla_installer.iso
subject-path: 'genimg/build/vanilla_installer.iso'

0 comments on commit d4b6dcc

Please sign in to comment.