-
Notifications
You must be signed in to change notification settings - Fork 93
41 lines (40 loc) · 1.17 KB
/
publish.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
name: Rebuild and Publish PDF
on:
push:
tags:
- 'v[0-9].[0-9]*-**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Ubuntu packages
run: |
sudo apt-get install python3-sympy texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-fonts-extra texlive-science
- name: Build Stable
if: contains(github.ref, 'stable')
run: |
make stable
- name: Publish Stable
uses: softprops/action-gh-release@v1
if: contains(github.ref, 'stable')
with:
files: riscv-debug-stable.pdf
- name: Build Release
if: contains(github.ref, 'release')
run: |
make release
- name: Build Draft
if: contains(github.ref, 'draft')
run: |
make draft
- name: Publish Draft
uses: softprops/action-gh-release@v1
if: contains(github.ref, 'draft')
with:
files: riscv-debug-draft.pdf
- name: Publish Release
uses: softprops/action-gh-release@v1
if: contains(github.ref, 'release')
with:
files: riscv-debug-release.pdf