-
Notifications
You must be signed in to change notification settings - Fork 8
60 lines (45 loc) · 1.88 KB
/
autobuild.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: Build EndeavourOS devel ISO
on:
schedule:
- cron: "0 10 * * 1"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 120
permissions:
contents: write
container:
image: archlinux:latest
options: --privileged
steps:
- uses: actions/checkout@v2
- name: Set current date and hour as environment variable
run: echo "NOW=$(date +'%Y-%m-%d_%H-%M')" >> $GITHUB_ENV
- name: Add EndeavourOS Repo
run: bash add-EndeavourOS
- name: Update packages and install archiso
run: "pacman -Syu --noconfirm --needed archiso mkinitcpio-archiso git squashfs-tools wget sudo base-devel curl lftp"
- name: create normal user (build) to build packages
run: bash build-packages
- name: preparations to build ISO
run: bash prepare-action
- name: Build ISO
run: bash build-iso
- name: tarball relase files
run: "cp EndeavourOS-ISO/*.log EndeavourOS-ISO/out/ && cd EndeavourOS-ISO/out && tar -czvf EndeavourOS-${{ env.NOW }}-devel-iso.tar.gz *.sha512sum *.iso *.log"
- name: Upload server_DEVEL
run: "curl -g -k -T EndeavourOS-ISO/out/*.tar.gz -u ${{secrets.SERVER_STRING_DEVEL}}"
#- name: archive for release
# run: tar -czvf EndeavourOS-ISO/out/unstable.tar.gz EndeavourOS-ISO/out/*.sha512sum EndeavourOS-ISO/out/*.iso
#- name: Upload binaries to release
# uses: svenstaro/upload-release-action@v2
# with:
# repo_name: endeavouros-team/development-iso-testing
# repo_token: ${{ secrets.ACCESS_TOKEN }}
# file: EndeavourOS-ISO/out/unstable.tar.gz
# asset_name: ${{ env.NOW }}-unstable.tar.gz
# tag: ${{ env.NOW }}
# prerelease: true
# overwrite: false
# body: "latest unstable iso"