mirror of
https://github.com/kristoferssolo/Theory-of-Algorithms-Cheatsheet.git
synced 2025-10-21 20:10:39 +00:00
Initial commit
This commit is contained in:
commit
c0122a03fb
43
.github/workflows/typst.yml
vendored
Normal file
43
.github/workflows/typst.yml
vendored
Normal file
@ -0,0 +1,43 @@
|
||||
name: Release
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v[0-9]+.[0-9]+.[0-9]+*"
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
description: 'Version number in the format `v1.2.3`'
|
||||
required: true
|
||||
type: string
|
||||
permissions:
|
||||
contents: write
|
||||
packages: read
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Install Typst
|
||||
uses: typst-community/setup-typst@v3
|
||||
with:
|
||||
typst-version: 0.13
|
||||
cache-dependency-path: requirements.typ
|
||||
- name: Compile Typst files
|
||||
run: |
|
||||
typst compile main.typ main.pdf
|
||||
- name: Upload PDF file
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: PDF
|
||||
path: "*.pdf"
|
||||
- name: Get current date
|
||||
id: date
|
||||
run: echo "DATE=$(date +%Y-%m-%d-%H:%M)" >> $GITHUB_ENV
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: github.ref_type == 'tag'
|
||||
with:
|
||||
name: "${{ github.ref_name }} — ${{ env.DATE }}"
|
||||
files: |
|
||||
main.pdf
|
||||
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
/target
|
||||
*.pdf
|
||||
0
bibliography.yml
Normal file
0
bibliography.yml
Normal file
0
requirements.typ
Normal file
0
requirements.typ
Normal file
Loading…
Reference in New Issue
Block a user