mirror of
https://github.com/soconnor0919/resume-cv.git
synced 2026-02-04 21:06:31 -05:00
feat: conditionally upload private PDFs based on the Git server and update the GitHub upload action to v4.
This commit is contained in:
12
.github/workflows/compile-latex.yml
vendored
12
.github/workflows/compile-latex.yml
vendored
@@ -183,7 +183,17 @@ jobs:
|
|||||||
- name: List generated PDFs
|
- name: List generated PDFs
|
||||||
run: ls -la *.pdf
|
run: ls -la *.pdf
|
||||||
|
|
||||||
- name: Upload Private PDFs
|
- name: Upload Private PDFs (GitHub)
|
||||||
|
if: github.server_url == 'https://github.com'
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: private-documents
|
||||||
|
path: |
|
||||||
|
resume.pdf
|
||||||
|
cv.pdf
|
||||||
|
|
||||||
|
- name: Upload Private PDFs (Gitea)
|
||||||
|
if: github.server_url != 'https://github.com'
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: private-documents
|
name: private-documents
|
||||||
|
|||||||
Reference in New Issue
Block a user