forked from kopp/aurci2
-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (45 loc) · 1.27 KB
/
build_repository.yaml
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
name: Make Repository
on:
push:
branches:
- master
- debug
schedule:
- cron: "0 2 * * *"
workflow_dispatch:
jobs:
build_repository:
runs-on: ubuntu-latest
steps:
- name: Get current time and date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d %H:%M')"
- name: Add keyserver
run: mkdir ~/.gnupg && touch ~/.gnupg/gpg.conf && echo 'keyserver hkps://keys.openpgp.org' >> ~/.gnupg/gpg.conf
- name: Build Packages
uses: kopp/build-aur-packages@v1
with:
packages: >
linux-zen
linux
linux-mainline
linux-xanmod
- name: List generated Files
run: ls -1 > ${{ github.workspace }}/files.txt
- name: Remove the current data from the release
uses: kopp/action-delete-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: aurci2
- name: Upload Files to Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: aurci2
name: Build ${{ github.run_number }} at ${{ steps.date.outputs.date }}
files: |
${{ github.workspace }}/*
draft: false
prerelease: false