combine into a single job rather than use artifacts
Some checks failed
Build and Publish / build_html (push) Failing after 1m17s
Some checks failed
Build and Publish / build_html (push) Failing after 1m17s
This commit is contained in:
@@ -9,33 +9,36 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Node
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: "latest"
|
||||||
|
|
||||||
- name: Build the resume
|
- name: Build the resume
|
||||||
run: |
|
run: |
|
||||||
npm i
|
npm i
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
- name: List files in the repository
|
- name: List files in the repository
|
||||||
run: |
|
run: |
|
||||||
ls ${{ gitea.workspace }}
|
ls ${{ gitea.workspace }}
|
||||||
|
|
||||||
convert_to_pdf:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Install weasyprint
|
- name: Install weasyprint
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y python3-venv python3-pip libpango-1.0-0 libpangoft2-1.0-0
|
sudo apt-get install -y python3-venv python3-pip libpango-1.0-0 libpangoft2-1.0-0
|
||||||
python3 -m venv venv
|
python3 -m venv venv
|
||||||
venv/bin/pip install weasyprint
|
venv/bin/pip install weasyprint
|
||||||
|
|
||||||
- name: Convert to pdf
|
- name: Convert to pdf
|
||||||
run: |
|
run: |
|
||||||
venv/bin/weasyprint generated_resume.html resume.pdf
|
venv/bin/weasyprint generated_resume.html resume.pdf
|
||||||
|
|
||||||
- name: List files in the repository
|
- name: List files in the repository
|
||||||
run: |
|
run: |
|
||||||
ls ${{ gitea.workspace }}
|
ls ${{ gitea.workspace }}
|
||||||
|
|
||||||
upload_as_release:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
uses: akkuman/gitea-release-action@v1
|
uses: akkuman/gitea-release-action@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user