Skip to content

Merge pull request #1 from maxkurze1/master #1

Merge pull request #1 from maxkurze1/master

Merge pull request #1 from maxkurze1/master #1

Workflow file for this run

name: Fetch current version and build specification
on:
push:
branches:
- "master"
jobs:
compile-spec:
runs-on: ubuntu-latest
name: Build specification
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: |
spec
- name: Compile LaTeX specification
uses: xu-cheng/latex-action@v3
with:
root_file: spec/main.tex
work_in_root_file_dir: true
- name: Create Release
uses: actions/create-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: release_${{ github.run_number }}
release_name: Release ${{ github.run_number }}
body: PDF release
draft: false
prerelease: false
- name: Upload PDF
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: spec/main.pdf
asset_name: main.pdf
asset_content_type: application/pdf