Skip to content

fix pdf release yml #15

fix pdf release yml

fix pdf release yml #15

name: Build and Release Resume PDF

Check failure on line 1 in .github/workflows/resume-pdf-release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/resume-pdf-release.yml

Invalid workflow file

(Line: 22, Col: 7): 'uses' is already defined
on:
push:
branches:
- main
paths:
- 'resume/**' # Only triggers when resume directory changes
workflow_dispatch: # Allows manual triggering
# Add permissions for the GITHUB_TOKEN
permissions:
contents: write
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: typst-community/setup-typst@v4
- name: Release resume/main.typ as PDF
run: |
typst compile --font-path ./resume/fonts resume/main.typ gabriel-steinberg-engineer-resume.pdf
- name: Delete existing latest release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Delete the release and tag if they exist
gh release delete latest --yes || true
git push --delete origin latest || true
continue-on-error: true
- name: Create latest release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create latest gabriel-steinberg-rust-engineer-resume.pdf \
--title "Latest Resume" \
--notes "Latest version of resume (updated $(date +'%Y-%m-%d %H:%M UTC'))
**Last commit:** ${{ github.event.head_commit.message }}
**Commit SHA:** ${{ github.sha }}
Generated from \`resume/main.typ\` using typst."