Skip to content

Commit

Permalink
Changed typst compile action to my own
Browse files Browse the repository at this point in the history
  • Loading branch information
ammar-ahmed22 committed Jan 13, 2024
1 parent 5918def commit f5bcf22
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,27 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v4

- name: Get Current Date
id: date
run: echo "DATE=$(date +%m-%d-%Y)" >> $GITHUB_ENV

- name: Compile PDF with Typst
uses: lvignoli/typst-action@main
uses: ammar-ahmed22/compile-typst-action@v1
with:
source_file: src/main.typ
options: |
--font-path
src/resources/fonts
source_paths: src/main.typ
output_paths: 'src/${{ github.ref_name }}-${{ env.DATE }}.pdf'

- name: Upload PDF
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: src/main.pdf

# - name: Release
# uses: softprops/action-gh-release@v1
# if: github.ref_type == 'tag'
# with:
# name: "${{ github.ref_name }} - ${{ env.DATE }}"
# files: src/main.pdf

0 comments on commit f5bcf22

Please sign in to comment.