Skip to content

Commit

Permalink
ci: dont release on pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
youwen5 committed Mar 17, 2024
1 parent 9611d33 commit beb8d68
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,32 @@ on:
- main

jobs:
build_and_release:
compile_latex:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y%m%d')"

- name: Compile LaTeX
uses: hspaans/latexmk-action@v1
with:
format: pdf
filename: root.tex

create_release:
needs: compile_latex
runs-on: ubuntu-latest
if: github.event_name == 'push'

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y%m%d')"

- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand Down

0 comments on commit beb8d68

Please sign in to comment.