-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.22 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Build Typst documents
on: [push, workflow_dispatch]
permissions:
contents: write
jobs:
build_typst_documents:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Build Typst documents
uses: lvignoli/typst-action@main
with:
source_file: |
algoritmi-di-crittografia/riassunto_algoritmi_crittografia.typ
introduction-to-quantum-information-processing/riassunto_quantum.typ
- name: Upload PDF files
uses: actions/upload-artifact@v4
with:
name: PDFs
path: |
algoritmi-di-crittografia/riassunto_algoritmi_crittografia.pdf
introduction-to-quantum-information-processing/riassunto_quantum.pdf
- name: Get current date
id: date
run: echo "DATE=$(date +%Y-%m-%d_%H:%M)" >> $GITHUB_ENV
- name: Create release
uses: softprops/action-gh-release@v1
if: github.ref_type == 'tag'
with:
name: "${{ github.ref_name }} — ${{ env.DATE }}"
files: |
algoritmi-di-crittografia/riassunto_algoritmi_crittografia.pdf
introduction-to-quantum-information-processing/riassunto_quantum.pdf