Skip to content

Update static.yml

Update static.yml #20

Workflow file for this run

name: Push Resume to GitHub Page
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.10"]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Push to Pages Repo
run: |
git config --global user.name "davidedigrande"
git config --global user.email "[email protected]"
gh auth login --with-token << $GITHUB_IO_TOKEN
gh repo delete davidedigrande.github.io --yes
gh repo create davidedigrande.github.io --public
git clone https://x-access-token:${GITHUB_IO_TOKEN}@github.com/davidedigrande/davidedigrande.github.io.git
pip install -r requirements.txt
python -m main
cp -R ./resume.html ./davidedigrande.github.io/index.html
cp -R ./resume.css ./davidedigrande.github.io/resume.css
cd davidedigrande.github.io
ls
git add .
git commit -m "Update from Resume-Builder"
git push
env:
GITHUB_IO_TOKEN: ${{ secrets.RESUME_BUILDER_GITHUB_ACTION_TOKEN }}