Skip to content

Update build.yml

Update build.yml #24

Workflow file for this run

name: Build Thesis
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install TeX Live
run: |
sudo apt update
sudo apt install -y texlive texlive-full
- name: Build
run: |
make
- name: Create Tag
run: |
echo "TAG_NAME=$(date +%Y.%m.%d.%H.%M)" >> "$GITHUB_ENV"
git tag ${{ env.TAG_NAME }}
git push origin ${{ env.TAG_NAME }}
- uses: ncipollo/release-action@v1
with:
allowUpdates: True
omitBody: True
tag: ${{ env.TAG_NAME }}
artifacts: "build/thesis.pdf"
token: ${{ secrets.GITHUB_TOKEN }}