Skip to content

Commit

Permalink
Only create releases for master
Browse files Browse the repository at this point in the history
  • Loading branch information
jrtc27 authored Feb 1, 2023
1 parent 6b43774 commit e31e62b
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: CI

on: [push]
on:
push:
branches:
- master
pull_request:

env:
doc_name: cheri-c-programming
Expand All @@ -16,11 +20,21 @@ jobs:
- name: Build document
run: make
- name: Upload artifact

uses: actions/upload-artifact@master
with:
name: ${{ env.doc_name }}.pdf
path: ${{ env.doc_name }}.pdf

draft-release:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
needs: build
runs-on: [ubuntu-18.04]
steps:
- name: Download artifact
uses: actions/download-artifact@master
with:
name: ${{ env.doc_name }}.pdf
path: ./
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y%m%d')"
Expand Down

0 comments on commit e31e62b

Please sign in to comment.