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

This commit is contained in:
Sean O'Connor
2026-02-04 12:31:20 -05:00
parent 5b99a95078
commit ad46c2ba70

View File

@@ -64,8 +64,9 @@ jobs:
- name: List generated PDFs
run: ls -la *.pdf
# Create/update latest release
- name: Upload Public PDFs as Release
# --- GITHUB RELEASES (Run only on GitHub) ---
- name: Upload Public PDFs as Release (GitHub)
if: github.server_url == 'https://github.com'
uses: ncipollo/release-action@v1
with:
artifacts: "resume.pdf,cv.pdf"
@@ -80,8 +81,8 @@ jobs:
removeArtifacts: true
replacesArtifacts: true
# Create a numbered release for version history
- name: Create Numbered Release
- name: Create Numbered Release (GitHub)
if: github.server_url == 'https://github.com'
uses: ncipollo/release-action@v1
with:
artifacts: "resume.pdf,cv.pdf"
@@ -95,6 +96,33 @@ jobs:
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.GITEA_TOKEN }}
files: |
resume.pdf
cv.pdf
name: Latest PDFs
tag_name: latest
prerelease: false
draft: false
- name: Create Numbered Release (Gitea)
if: github.server_url != 'https://github.com'
uses: akkuman/gitea-release-action@v1
with:
token: ${{ secrets.GITEA_TOKEN }}
files: |
resume.pdf
cv.pdf
name: Release ${{ github.run_number }}
tag_name: release-${{ github.run_number }}
prerelease: false
draft: false
build-private:
runs-on: ubuntu-latest
container: ghcr.io/xu-cheng/texlive-alpine:latest