Skip to content

compile and release version #11

compile and release version

compile and release version #11

Workflow file for this run

name: compile and release version
on:
push:
tags:
- v*.*.*
jobs:
build_latex:
runs-on: ubuntu-latest
steps:
- name: Setup Git Repository
uses: actions/checkout@v2
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v2
with:
root_file: document.tex
- name: Verifying version
run: |
echo "Tag name: ${{ github.ref }}"
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.TEMPLATE_BEAMER_RELEASE }}
with:
tag_name: ${{ github.event.ref }}
release_name: Release ${{ github.event.ref }}
draft: false
prerelease: false
- name: Install zip
run: sudo apt-get install -y zip
- name: Compacting files
run: |
echo "Compacting files in a ZIP file"
zip -r templatebeamerufc.zip *
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.TEMPLATE_BEAMER_RELEASE }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: templatebeamerufc.zip
asset_name: templatebeamerufc.zip
asset_content_type: application/zip