6 Commits

Author SHA1 Message Date
Sean O'Connor
cebeded60e refactor: split the private build job into separate GitHub and Gitea jobs to use appropriate artifact upload versions.
All checks were successful
Compile LaTeX Documents / build-public (push) Successful in 49s
Compile LaTeX Documents / build-private-github (push) Has been skipped
Compile LaTeX Documents / build-private-gitea (push) Successful in 47s
2026-02-04 12:57:03 -05:00
Sean O'Connor
65139ac3b1 feat: conditionally upload private PDFs based on the Git server and update the GitHub upload action to v4. 2026-02-04 12:51:31 -05:00
Sean O'Connor
eeba5c7aea fix: Update Gitea release action token to GITHUB_TOKEN and downgrade upload-artifact action to v3.
All checks were successful
Compile LaTeX Documents / build-public (push) Successful in 49s
Compile LaTeX Documents / build-private (push) Successful in 56s
2026-02-04 12:47:01 -05:00
Sean O'Connor
ad46c2ba70 feat: Implement conditional GitHub and Gitea release publishing based on the server environment.
Some checks failed
Compile LaTeX Documents / build-public (push) Successful in 48s
Compile LaTeX Documents / build-private (push) Failing after 27s
2026-02-04 12:31:20 -05:00
Sean O'Connor
5b99a95078 refactor: Replace softprops/action-gh-release with ncipollo/release-action for GitHub release creation.
Some checks failed
Compile LaTeX Documents / build-public (push) Failing after 36s
Compile LaTeX Documents / build-private (push) Failing after 27s
2026-02-04 10:13:29 -05:00
Sean O'Connor
fa5d42251d chore: Explicitly pass GITHUB_TOKEN to release actions. 2026-02-04 10:04:27 -05:00

View File

@@ -64,42 +64,69 @@ jobs:
- name: List generated PDFs - name: List generated PDFs
run: ls -la *.pdf run: ls -la *.pdf
# Create/update latest release # --- GITHUB RELEASES (Run only on GitHub) ---
- name: Upload Public PDFs as Release - name: Upload Public PDFs as Release (GitHub)
uses: softprops/action-gh-release@v2 if: github.server_url == 'https://github.com'
uses: ncipollo/release-action@v1
with: with:
files: | artifacts: "resume.pdf,cv.pdf"
resume.pdf tag: latest
cv.pdf
tag_name: latest
name: Latest PDFs name: Latest PDFs
body: | body: |
Latest compiled resume and CV (public versions) Latest compiled resume and CV (public versions)
Built from commit ${{ github.sha }} Built from commit ${{ github.sha }}
prerelease: false token: ${{ secrets.GITHUB_TOKEN }}
draft: false allowUpdates: true
removeArtifacts: true
replacesArtifacts: true
# Create a numbered release for version history - name: Create Numbered Release (GitHub)
- name: Create Numbered Release if: github.server_url == 'https://github.com'
uses: softprops/action-gh-release@v2 uses: ncipollo/release-action@v1
with: with:
files: | artifacts: "resume.pdf,cv.pdf"
resume.pdf tag: release-${{ github.run_number }}
cv.pdf
tag_name: release-${{ github.run_number }}
name: Release ${{ github.run_number }} name: Release ${{ github.run_number }}
body: | body: |
Automated release #${{ github.run_number }} Automated release #${{ github.run_number }}
Built from commit ${{ github.sha }} Built from commit ${{ github.sha }}
token: ${{ secrets.GITHUB_TOKEN }}
draft: false
prerelease: false
# --- GITEA RELEASES (Run only on Gitea) ---
- name: Upload Public PDFs as Release (Gitea)
if: github.server_url != 'https://github.com'
uses: akkuman/gitea-release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: |
resume.pdf
cv.pdf
name: Latest PDFs
tag_name: latest
prerelease: false prerelease: false
draft: false draft: false
build-private: - name: Create Numbered Release (Gitea)
if: github.server_url != 'https://github.com'
uses: akkuman/gitea-release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: |
resume.pdf
cv.pdf
name: Release ${{ github.run_number }}
tag_name: release-${{ github.run_number }}
prerelease: false
draft: false
build-private-github:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: ghcr.io/xu-cheng/texlive-alpine:latest container: ghcr.io/xu-cheng/texlive-alpine:latest
if: github.actor == github.repository_owner if: github.actor == github.repository_owner && github.server_url == 'https://github.com'
steps: steps:
- name: Install system dependencies - name: Install system dependencies
run: apk add --no-cache git gettext bash nodejs run: apk add --no-cache git gettext bash nodejs
@@ -163,3 +190,71 @@ jobs:
path: | path: |
resume.pdf resume.pdf
cv.pdf cv.pdf
build-private-gitea:
runs-on: ubuntu-latest
container: ghcr.io/xu-cheng/texlive-alpine:latest
if: github.actor == github.repository_owner && github.server_url != 'https://github.com'
steps:
- name: Install system dependencies
run: apk add --no-cache git gettext bash nodejs
- uses: actions/checkout@v4
- name: Create private info file
env:
PERSONAL_NAME: ${{ secrets.PERSONAL_NAME || github.repository_owner }}
PERSONAL_EMAIL: ${{ secrets.PERSONAL_EMAIL || '' }}
PERSONAL_WEBSITE: ${{ secrets.PERSONAL_WEBSITE || '' }}
PERSONAL_SCHOOL_EMAIL: ${{ secrets.PERSONAL_SCHOOL_EMAIL || '' }}
PERSONAL_PHONE: ${{ secrets.PERSONAL_PHONE || '' }}
PERSONAL_HOME_ADDRESS_LINE1: ${{ secrets.PERSONAL_HOME_ADDRESS_LINE1 || '' }}
PERSONAL_HOME_ADDRESS_LINE2: ${{ secrets.PERSONAL_HOME_ADDRESS_LINE2 || '' }}
PERSONAL_SCHOOL_ADDRESS_LINE1: ${{ secrets.PERSONAL_SCHOOL_ADDRESS_LINE1 || '' }}
PERSONAL_SCHOOL_ADDRESS_LINE2: ${{ secrets.PERSONAL_SCHOOL_ADDRESS_LINE2 || '' }}
PERSONAL_SCHOOL_ADDRESS_LINE3: ${{ secrets.PERSONAL_SCHOOL_ADDRESS_LINE3 || '' }}
run: |
cat > personal_info.tex << 'EOL'
% Private version of personal information
\newcommand{\personalName}{${PERSONAL_NAME}}
\newcommand{\personalEmail}{${PERSONAL_EMAIL}}
\newcommand{\personalPhone}{${PERSONAL_PHONE}}
\newcommand{\personalWebsite}{${PERSONAL_WEBSITE}}
\newcommand{\personalSchoolEmail}{${PERSONAL_SCHOOL_EMAIL}}
\newcommand{\personalHomeAddressLineOne}{${PERSONAL_HOME_ADDRESS_LINE1}}
\newcommand{\personalHomeAddressLineTwo}{${PERSONAL_HOME_ADDRESS_LINE2}}
\newcommand{\personalSchoolAddressLineOne}{${PERSONAL_SCHOOL_ADDRESS_LINE1}}
\newcommand{\personalSchoolAddressLineTwo}{${PERSONAL_SCHOOL_ADDRESS_LINE2}}
\newcommand{\personalSchoolAddressLineThree}{${PERSONAL_SCHOOL_ADDRESS_LINE3}}
EOL
envsubst < personal_info.tex > personal_info.tex.tmp
mv personal_info.tex.tmp personal_info.tex
- name: Cache TeX Live
uses: actions/cache@v4
with:
path: |
/tmp/texlive
~/.texlive*
key: texlive-${{ runner.os }}-${{ hashFiles('**/*.tex', 'subfiles/**/*.tex') }}
restore-keys: |
texlive-${{ runner.os }}-
- name: Create TeX Live directory
run: mkdir -p /tmp/texlive
- name: Compile LaTeX
run: |
latexmk -pdf -file-line-error -halt-on-error -interaction=nonstopmode resume.tex
latexmk -pdf -file-line-error -halt-on-error -interaction=nonstopmode cv.tex
- name: List generated PDFs
run: ls -la *.pdf
- name: Upload Private PDFs
uses: actions/upload-artifact@v3
with:
name: private-documents
path: |
resume.pdf
cv.pdf