forked from endeavouros-team/iso-autobuild
-
-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (41 loc) · 1.59 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
name: Weekly EndeavourOS ISO rebuilds
on:
schedule:
- cron: "0 0 * * 5" #once a week
#- cron : "0 */8 * * *" #every 8 hours (3 per day)
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')" >> $GITHUB_ENV
- name: Add EndeavourOS Repo
run: bash add-EndeavourOS
- name: remove package cache
run: bash archiso-install
- name: preparations to build ISO
run: bash prepare-action
- name: Build ISO
run: bash build-iso
- name: Upload binaries to release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.ACCESS_TOKEN }}"
automatic_release_tag: "latest"
prerelease: false
title: "Weekly Rebuild ${{ env.NOW }}"
files: |
EndeavourOS-ISO/out/EndeavourOS_Endeavour-${{ env.NOW }}-x86_64.iso.split-aa
EndeavourOS-ISO/out/EndeavourOS_Endeavour-${{ env.NOW }}-x86_64.iso.split-ab
EndeavourOS-ISO/out/EndeavourOS_Endeavour-${{ env.NOW }}-x86_64.iso.split-ac
EndeavourOS-ISO/out/EndeavourOS_Endeavour-${{ env.NOW }}-x86_64.iso.sha512sum
eosiso_$(date -u +'%Y.%m.%d-%H:%M').log
id: "weekly-iso-rebuild"