Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
CuriousCI committed Aug 28, 2024
1 parent 12165c0 commit 9fc484b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/main.yml → .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Typst Document
name: Build & Release Typst Documents
on: [push, workflow_dispatch]

permissions:
Expand All @@ -9,27 +9,18 @@ jobs:
build:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v4

- uses: typst-community/setup-typst@v3
# - run: sudo apt-get install fonts-cascadia-code

- run: |
curl -LO https://github.com/microsoft/cascadia-code/releases/download/v2404.23/CascadiaCode-2404.23.zip
unzip CascadiaCode-2404.23.zip -d ~/cascadia-code
sudo cp ~/cascadia-code/otf/static/*.otf /usr/local/share/fonts
sudo fc-cache -f -v
# mkdir ~/.local/share/fonts/
# ~/.local/share/fonts/
- run: typst compile java-swing-mvc.typ java-swing-mvc.pdf
- run: typst compile git.typ git.pdf

- name: Release
uses: softprops/action-gh-release@v1
if: github.ref_type == 'tag'
with:
name: "${{ github.ref_name }} — ${{ env.DATE }}"
files: |
java-swing-mvc.pdf
git.pdf
typst compile java-swing-mvc.typ java-swing-mvc.pdf
typst compile git.typ git.pdf
- uses: marvinpinto/action-automatic-releases@latest
with:
Expand All @@ -47,3 +38,12 @@ jobs:
delete_tag_pattern: latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


# - uses: softprops/action-gh-release@v1
# if: github.ref_type == 'tag'
# with:
# name: "${{ github.ref_name }} — ${{ env.DATE }}"
# files: |
# java-swing-mvc.pdf
# git.pdf
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

## Dove trovo i pdf delle guide?

I pdf delle guide li trovi [qui](https://github.com/sapienza-metodologie-di-programmazione/guide/releases) (o cliccando su `Releases > latest` qui a destra)
I pdf delle guide li trovi [qui](https://github.com/sapienza-metodologie-di-programmazione/guide/releases) (o cliccando su `Releases > latest` nella sezione a destra)

## Ci sono alcuni esempi di progetto?

- [Gioco Impiccato](https://github.com/arianna011/gioco-impiccato)
- [Mineswepper](https://github.com/CuriousCI/minesweeper)
- [Mineswepper](https://github.com/CuriousCI/minesweeper)
File renamed without changes.
Binary file added assets/github-pages.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9fc484b

Please sign in to comment.