We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02260d9 commit 4018d14Copy full SHA for 4018d14
.github/workflows/compile.yml
@@ -1,6 +1,10 @@
1
name: CI
2
3
-on: [push]
+on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
9
env:
10
doc_name: cheri-architecture
@@ -16,12 +20,21 @@ jobs:
16
20
- name: Build document
17
21
run: make
18
22
- name: Upload artifact
19
-
23
uses: actions/upload-artifact@master
24
with:
25
name: ${{ env.doc_name }}.pdf
26
path: ${{ env.doc_name }}.pdf
27
28
+ draft-release:
29
+ if: github.event_name == 'push' && github.ref == 'refs/heads/main'
30
+ needs: build
31
+ runs-on: [ubuntu-18.04]
32
+ steps:
33
+ - name: Download artifact
34
+ uses: actions/download-artifact@master
35
+ with:
36
+ name: ${{ env.doc_name }}.pdf
37
+ path: ./
38
- name: Get current date
39
id: date
40
run: echo "::set-output name=date::$(date +'%Y%m%d')"
0 commit comments