change the action build method & update English version #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Commit PDF | |
on: [push] | |
jobs: | |
build: | |
name: Build PDF | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout master | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: typst-community/setup-typst@v3 | |
id: setup-typst | |
- name: Build PDF | |
run: 'make all' | |
# - name: Git Auto Commit | |
# uses: stefanzweifel/git-auto-commit-action@v5.0.0 | |
# with: | |
# commit_message: 'Update resume PDF' | |
# commit_options: '--no-verify --signoff' | |
# branch: 'main' | |
# file_pattern: '*.pdf' | |
# repository: . | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: resume-pdf | |
path: | | |
个人简历.pdf | |
Resume.pdf | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
个人简历.pdf | |
Resume.pdf | |