-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (40 loc) · 1.27 KB
/
iso_build.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
name: iso_build
on: workflow_dispatch
jobs:
prepare-release:
runs-on: ubuntu-20.04
steps:
- uses: styfle/cancel-workflow-action@0.10.0
with:
access_token: ${{ github.token }}
- id: time
uses: nanzm/get-time-action@v1.1
with:
format: YYYYMMDDHHmm
outputs:
release_tag: ${{ steps.time.outputs.time }}
build-release:
runs-on: ubuntu-20.04
needs: prepare-release
steps:
- uses: styfle/cancel-workflow-action@0.10.0
with:
access_token: ${{ github.token }}
- id: time
uses: nanzm/get-time-action@v1.1
with:
format: YY.MM
- name: image-build-upload
uses: manjaro/manjaro-iso-action@main
with:
edition: xfce
version: ${{ steps.time.outputs.time }}
kernel: linux519
code-name: Custom-Build
release-tag: ${{ needs.prepare-release.outputs.release_tag }}
- name: rollback
if: ${{ failure() || cancelled() }}
run: |
echo ${{ github.token }} | gh auth login --with-token
gh release delete ${{ needs.prepare-release.outputs.release_tag }} -y --repo ${{ github.repository }}
git push --delete origin ${{ needs.prepare-release.outputs.release_tag }}