Skip to content

Commit 4018d14

Browse files
authored
Only create releases for main
1 parent 02260d9 commit 4018d14

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/compile.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: CI
22

3-
on: [push]
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
48

59
env:
610
doc_name: cheri-architecture
@@ -16,12 +20,21 @@ jobs:
1620
- name: Build document
1721
run: make
1822
- name: Upload artifact
19-
2023
uses: actions/upload-artifact@master
2124
with:
2225
name: ${{ env.doc_name }}.pdf
2326
path: ${{ env.doc_name }}.pdf
2427

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: ./
2538
- name: Get current date
2639
id: date
2740
run: echo "::set-output name=date::$(date +'%Y%m%d')"

0 commit comments

Comments
 (0)