-
Notifications
You must be signed in to change notification settings - Fork 3
63 lines (63 loc) · 1.97 KB
/
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
61
62
63
name: Release
run-name: Release triggered by ${{ github.actor }}
on:
workflow_dispatch:
workflow_call:
schedule:
- cron: '58 3 5,20 * *'
jobs:
release:
name: 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: false
fail_on_unmatched_files: true
generate_release_notes: false
append_body: false
body_path: CHANGELOG.md
tag_name: ${{ env.NOW }}
name: ${{ env.NOW }}
files: |
output/*.iso*