Skip to content

Merge branch 'main' into renovate/dioxus-router-0.x-lockfile #201

Merge branch 'main' into renovate/dioxus-router-0.x-lockfile

Merge branch 'main' into renovate/dioxus-router-0.x-lockfile #201

Workflow file for this run

name: gh-pages
on:
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
runs-on: ubuntu-latest
if: success()
steps:
- name: Checkout
uses: actions/checkout@v4
- 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: Download Resume
run: |
curl -sSL -o resume.pdf https://raw.githubusercontent.com/MH0386/MH0386/main/resume.pdf
if [ ! -f resume.pdf ]; then
echo "Failed to download resume"
exit 1
fi
- name: Commit and Push Resume
run: |
git add resume.pdf
git commit -m "Add My Resume" || echo "No changes to commit"
git push || (echo "Failed to push changes" && exit 1)