Skip to content

Commit

Permalink
ci(workflow): add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
susickypavel committed Oct 18, 2023
1 parent deecbde commit e608071
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 18 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/ci.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: release

on:
push:
tags:
- "*"

jobs:
build:
runs-on: ubuntu-latest
permissions: write-all

steps:
- uses: actions/checkout@v4

- uses: xu-cheng/latex-action@v3
with:
root_file: thesis.tex
texlive_version: latest
working_directory: src

- run: echo "TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV

- uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: src/thesis.pdf
asset_name: thesis-${{ env.TAG }}.pdf
tag: ${{ github.ref }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ To make your life a little bit easier, there are several `TODO` comments placed
│ │ ├─ ctuth-names.tex
│ │ ├─ ctuth-templates.tex
│ │ ├─ ctuth-pkg.tex
│ │ ├─ ctuthesis.cls # LaTeX class file that makes all the magic, don't worry about it too much.
│ ├─ documents/ # Directory for all sorts of documents
│ │ ├─ zadani.pdf # Specification of your thesis
│ ├─ ctuthesis.cls # LaTeX class file that makes all the magic, don't worry about it too much.
│ ├─ thesis.ist # Formatting configuration for Index of the document
│ ├─ thesis.bib # Bibliography references
│ ├─ thesis.tex # Entry tex file for your thesis
Expand Down

0 comments on commit e608071

Please sign in to comment.