-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (47 loc) · 1.2 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
---
name: Release
on:
schedule:
- cron: '0 */6 * * *'
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
env:
CHECK: 0
steps:
- uses: actions/checkout@v4
- name: Prepare
run: chmod +x ./release.sh
- name: Check for newer versions
run: ./release.sh --check || echo 'CHECK=1' >> "${GITHUB_ENV}"
shell: bash
- name: Install
if: ${{ env.CHECK == 1 }}
run: |
sudo apt-get update
sudo apt-get install -y reprepro
- name: Download package
if: ${{ env.CHECK == 1 }}
run: ./release.sh --get
shell: bash
- name: Verify package
if: ${{ env.CHECK == 1 }}
run: ./release.sh --verify-hash
shell: bash
- name: Import GPG key
if: ${{ env.CHECK == 1 }}
run: ./release.sh --gpg
shell: bash
env:
GPG_KEY: ${{ secrets.GPG_KEY }}
- name: Update repository
if: ${{ env.CHECK == 1 }}
run: ./release.sh --repo
shell: bash
- name: Push
if: ${{ env.CHECK == 1 }}
run: ./release.sh --push
shell: bash
env:
SSH_KEY: ${{ secrets.SSH_KEY }}