This repository has been archived by the owner on Jun 8, 2024. It is now read-only.
forked from ublue-os/bluefin
-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (67 loc) · 2.09 KB
/
release-please.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
on:
push:
branches:
- main
permissions:
contents: write
checks: write
actions: read
packages: write
pull-requests: write
name: Release Please
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
releases_created: ${{ steps.release-please.outputs.releases_created }}
tag: ${{ steps.release-please.outputs.tag_name }}
upload_url: ${{ steps.release-please.outputs.upload_url }}
steps:
- uses: google-github-actions/release-please-action@v3
id: release-please
with:
release-type: node
package-name: release-please-action
build-iso:
name: Generate and Release ISOs
runs-on: ubuntu-latest
needs: release-please
if: needs.release-please.outputs.releases_created
container:
image: fedora:38
options: --privileged
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Generate ISO
uses: ublue-os/isogenerator@v2.0.2
id: isogenerator
with:
image-name: bluefin
installer-repo: releases
installer-major-version: 38
boot-menu-path: boot_menu.yml
- name: install github CLI
run: |
sudo dnf install 'dnf-command(config-manager)' -y
sudo dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo
sudo dnf install gh -y
- name: Upload ISO
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
gh release upload \
${{ needs.release-please.outputs.tag }} \
./${{ steps.isogenerator.outputs.iso-path }} \
--repo ${{ github.repository_owner }}/${{ github.event.repository.name }} \
--clobber
# - name: Upload SHA256SUM
# env:
# GITHUB_TOKEN: ${{ github.token }}
# run: |
# gh release upload \
# ${{ needs.release-please.outputs.tag }} \
# ./${{ steps.isogenerator.outputs.sha256sum-path }} \
# --repo ${{ github.repository_owner }}/${{ github.event.repository.name }} \
# --clobber