-
Notifications
You must be signed in to change notification settings - Fork 3
60 lines (60 loc) · 1.91 KB
/
pre_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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Pre-Release
run-name: Pre-Release triggered by ${{ github.actor }}
on:
workflow_dispatch:
workflow_call:
jobs:
pre_release:
name: Pre-Release
runs-on: ubuntu-latest
container:
image: rebornos/rebornos:latest
ports:
- 80
options: --privileged
steps:
- id: init_docker_step
name: Initialize RebornOS Docker Container
run: |
sh /usr/bin/init-rebornos-docker.sh
pacman -S --noconfirm github-cli
- id: checkout_repository_step
name: Checkout Git Repository
uses: actions/checkout@v3
- id: fetch_installer_step
name: Fetch Installer
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd local_repo
gh -R rebornos-team/calamares-configuration release download --pattern '*.pkg.tar*'
gh -R rebornos-team/calamares-core release download --pattern '*.pkg.tar*'
rm -f *.md5sum
repo-add rebornos-iso.db.tar.xz calamares*.pkg.tar.*
cd ..
- id: build_iso_step
name: Build ISO
run: sh scripts/build.sh
# run: |
# mkdir output
# touch output/rebornos_iso.iso
# echo "Hello World!" > output/rebornos_iso.iso
- id: generate_checksum_step
name: Generate CheckSum
run: find output -type f -exec sh -c 'md5sum $0 > $0.md5sum' {} \;
- id: get_date_step
name: Get the Date
run: echo "NOW=$(date +'%Y.%m.%d_%H_%M_%S')" >> $GITHUB_ENV
- id: create_release_step
name: Create Release
uses: softprops/action-gh-release@v1
with:
draft: false
prerelease: true
fail_on_unmatched_files: true
generate_release_notes: true
append_body: false
tag_name: ${{ env.NOW }}
name: ${{ env.NOW }}
files: |
output/*.iso*