Skip to content

Commit

Permalink
Auto release
Browse files Browse the repository at this point in the history
  • Loading branch information
zindable authored Jul 1, 2021
1 parent 6cfac74 commit dcca7d7
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build LaTeX document and deploy new Release
on:
push:
branches: [ main ]

jobs:
Build-LaTeX-Doc-and-Deploy:
runs-on: ubuntu-latest
steps:
- name: Set up Git Repository
uses: actions/checkout@v2

- name: Compile LaTeX Doc
id: compile-doc
uses: xu-cheng/latex-action@v2
with:
root_file: main.tex

- name: Create new Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v1.${{ github.run_number }}
release_name: ${{ github.repository }}
draft: false
prerelease: false

- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./main.pdf
asset_name: main.pdf
asset_content_type: application/zip

0 comments on commit dcca7d7

Please sign in to comment.