-
-
Notifications
You must be signed in to change notification settings - Fork 24
78 lines (76 loc) · 2.19 KB
/
build-iso.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
71
72
73
74
75
76
77
78
---
name: Build Fedora ISO
# yamllint disable-line rule:truthy
on: [push]
jobs:
tests:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: "AgentInfo"
run: ./.github/agent-info.sh
- name: "YamlLint"
run: |
docker run \
--rm \
-w /repo \
-v $(pwd):/repo \
-t \
alpine:3.16 /bin/sh -c " \
apk add --no-cache py-pip python3 bash \
&& pip3 install yamllint \
&& yamllint -s . \
"
- name: "ShellCheck"
run: |
docker run \
--rm \
-w /repo \
-v $(pwd):/repo \
-t \
alpine:3.16 /bin/sh -c " \
apk add --no-cache shellcheck bash \
&& shellcheck $(find . -type f -name "*.sh" | tr '\n' ' ')
"
build-gnome:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: "Build Fedora Gnome ISO"
run: ./build_in_docker.sh
env:
FEDORA_DESKTOP_ENV: gnome
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
tag_name: ${{ github.ref }}
name: Release gnome ${{ github.ref }}
draft: true
files: |
./output_zip/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # You don't need to add this in secrets it's by default.
- name: "AgentInfo"
run: ./.github/agent-info.sh
build-kde:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: "Build Fedora KDE ISO"
run: ./build_in_docker.sh
env:
FEDORA_DESKTOP_ENV: kde
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
tag_name: ${{ github.ref }}
name: Release kde ${{ github.ref }}
draft: true
files: |
./output_zip/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # You don't need to add this in secrets it's by default.
- name: "AgentInfo"
run: ./.github/agent-info.sh