Skip to content

chore(deps): lock file maintenance #270

chore(deps): lock file maintenance

chore(deps): lock file maintenance #270

Workflow file for this run

name: gh-pages
on:
workflow_dispatch:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Dioxus Deploy
uses: DioxusLabs/deploy-action@4f933485ec8f37a9dc1beec181f4eba58789523e
with:
outDirectory: "target/dx/my_website/release/web/public"
# id: deployment
# continue-on-error: true
# - name: Check Deployment Status
# if: steps.deployment.outcome != 'success'
# run: |
# echo "Deployment failed"
# exit 1
deploy-resume:
# needs: build
# if: success()
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Fetch main
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git fetch
- name: Download Resume
uses: robinraju/[email protected]
with:
latest: true
fileName: "resume.pdf"
out-file-path: "data/docs/"
repository: "MH0386/MH0386"
- name: Commit and Push Resume
run: |
git add data/docs/
git commit -m "Update Docs" || echo "No changes to commit"
git pull
git push || (echo "Failed to push changes" && exit 1)
- name: Fetch gh-pages
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git fetch
git checkout gh-pages || (echo "Failed to checkout gh-pages branch" && exit 1)
- name: Commit and Push Resume
run: |
git checkout main -- data/docs/
git add data/docs/
git commit -m "Update Docs" || echo "No changes to commit"
git push || (echo "Failed to push changes" && exit 1)