mirror of
https://github.com/kristoferssolo/Databases-II-Cheatsheet.git
synced 2025-10-21 18:20:35 +00:00
chore: add actions
add main file
This commit is contained in:
parent
3f4261e918
commit
1bf92654da
29
.github/workflows/typst.yml
vendored
Normal file
29
.github/workflows/typst.yml
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
name: Build Typst document
|
||||
on: [push, workflow_dispatch]
|
||||
permissions:
|
||||
contents: write
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Typst
|
||||
uses: lvignoli/typst-action@main
|
||||
with:
|
||||
source_file: |
|
||||
main.typ
|
||||
- name: Upload PDF file
|
||||
uses: actions/upload-artifact@v3
|
||||
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
|
||||
BIN
img/bitmap.png
BIN
img/bitmap.png
Binary file not shown.
|
Before Width: | Height: | Size: 42 KiB |
Loading…
Reference in New Issue
Block a user