Skip to content

Moved python dependencies to requirements.txt with specific versions #9

Moved python dependencies to requirements.txt with specific versions

Moved python dependencies to requirements.txt with specific versions #9

Workflow file for this run

name: release
on:
push:
branches: [main]
env:
RESUME_TARGET: release/resume.pdf
permissions:
contents: write
pull-requests: write
issues: read
packages: none
jobs:
publish:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "22.5.1"
- name: Use Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install requirements
run: npm ci
- name: Rendering html
run: npm run to_html
- name: Rendering pdf
run: npm run to_pdf
- name: Rendering RenderCV output
run: npm run to_rendercv
- name: Set version as short sha
run: echo "VERSION=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
- name: Get asset name
run: echo "RESUME_NAME=`basename ${RESUME_TARGET}`" >> $GITHUB_ENV
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.VERSION }}
release_name: Release ${{ env.VERSION }}
draft: false
prerelease: false
- name: Upload pdf
id: upload-release-pdf
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ env.RESUME_TARGET }}
asset_name: ${{ env.RESUME_NAME }}
asset_content_type: application/pdf
- name: Prepare GitHub Pages deployment
run: |
mkdir gh-pages
cp release/resume.html gh-pages/index.html
cp release/resume.pdf gh-pages/
cp release/rendercv_output/*.html gh-pages/resume-mini.html
cp release/rendercv_output/*.pdf gh-pages/resume-mini.pdf
echo "resume.govind.guru" > gh-pages/CNAME
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: gh-pages