HowToBuildACommonsWorkbooks/.github/workflows/main.yml
2025-08-22 23:14:30 -04:00

47 lines
1.4 KiB
YAML

name: "Release"
on:
push:
tags:
- '*'
permissions:
contents: write # Required to create releases
jobs:
convert_via_pandoc:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive
- run: sudo add-apt-repository -y ppa:sunderme/texstudio
- run: sudo apt install texlive-latex-extra
- run: echo $PWD
- run: ls -al ./
- run: ls -al ../
- run: sed -i 's/VERSIONNUMBER/${{ github.ref_name }}/g' ScopeSequencing.tex
- run: pdflatex -jobname=ScopeSequencing-${{ github.ref_name }} ScopeSequencing.tex
- run: ls -al .
- name: release
uses: actions/create-release@v1
id: create_release
with:
draft: false
prerelease: false
release_name: ${{ steps.get_version.outputs.VERSION }}
tag_name: ${{ github.ref }}
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Upload Keywords
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ScopeSequencing-${{ github.ref_name }}.pdf
asset_name: ScopeSequencing-${{ github.ref_name }}.pdf
asset_content_type: application/binary