-
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.18 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
name: Release
permissions:
contents: write
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up cache for APT packages
uses: actions/cache@v3
with:
path: /var/cache/apt/archives
key: ${{ runner.os }}-apt-cache-${{ hashFiles('apt-packages.txt') }}
restore-keys: |
${{ runner.os }}-apt-cache-
- name: Set up cache for APT lists
uses: actions/cache@v3
with:
path: /var/lib/apt/lists
key: ${{ runner.os }}-apt-lists-${{ hashFiles('apt-packages.txt') }}
restore-keys: |
${{ runner.os }}-apt-lists-
- name: Update APT and install dependencies
run: make pkgs
- name: Create Document PDF
run: make doc
- name: Create or update release
id: create_release
uses: softprops/action-gh-release@v2
with:
tag_name: latest
release_name: "Latest Release"
draft: false
prerelease: false
files: ./doc.pdf
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}