mirror of
https://github.com/soconnor0919/resume-cv.git
synced 2025-12-13 06:24:43 -05:00
Update github action
This commit is contained in:
39
.github/workflows/compile-latex.yml
vendored
39
.github/workflows/compile-latex.yml
vendored
@@ -16,31 +16,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
|
|
||||||
- name: Cache Docker images
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: /tmp/.buildx-cache
|
|
||||||
key: ${{ runner.os }}-buildx-${{ hashFiles('Dockerfile') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-buildx-
|
|
||||||
|
|
||||||
- name: Load cached Docker image
|
|
||||||
uses: docker/build-push-action@v5
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
load: true
|
|
||||||
tags: ghcr.io/xu-cheng/texlive-full:latest
|
|
||||||
cache-from: type=local,src=/tmp/.buildx-cache
|
|
||||||
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
|
|
||||||
|
|
||||||
- name: Move cache
|
|
||||||
run: |
|
|
||||||
rm -rf /tmp/.buildx-cache
|
|
||||||
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
|
|
||||||
|
|
||||||
- name: Create public info file
|
- name: Create public info file
|
||||||
env:
|
env:
|
||||||
PERSONAL_NAME: ${{ secrets.PERSONAL_NAME || github.repository_owner }}
|
PERSONAL_NAME: ${{ secrets.PERSONAL_NAME || github.repository_owner }}
|
||||||
@@ -85,18 +60,6 @@ jobs:
|
|||||||
cv.tex
|
cv.tex
|
||||||
latexmk_use_xelatex: false
|
latexmk_use_xelatex: false
|
||||||
|
|
||||||
- name: Move PDFs to root
|
|
||||||
run: |
|
|
||||||
ls -la *.pdf
|
|
||||||
|
|
||||||
- name: Delete existing tag
|
|
||||||
continue-on-error: true
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
git tag -d latest || true
|
|
||||||
git push origin :refs/tags/latest || true
|
|
||||||
|
|
||||||
- name: Upload Public PDFs as Release
|
- name: Upload Public PDFs as Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
@@ -104,7 +67,7 @@ jobs:
|
|||||||
resume.pdf
|
resume.pdf
|
||||||
cv.pdf
|
cv.pdf
|
||||||
name: Latest PDFs
|
name: Latest PDFs
|
||||||
tag_name: latest
|
tag_name: release-${{ github.run_number }}
|
||||||
body: |
|
body: |
|
||||||
Latest version of resume and CV (public version)
|
Latest version of resume and CV (public version)
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
|||||||
Reference in New Issue
Block a user