File tree Expand file tree Collapse file tree 2 files changed +17
-66
lines changed Expand file tree Collapse file tree 2 files changed +17
-66
lines changed Original file line number Diff line number Diff line change 77 schedule :
88 - cron : ' 0 18 * * *'
99
10+ concurrency :
11+ group : " pages"
12+ cancel-in-progress : false
13+
1014jobs :
1115 build :
1216 runs-on : ubuntu-latest
@@ -44,15 +48,16 @@ jobs:
4448 JEKYLL_GITHUB_TOKEN : ${{ secrets.JEKYLL_GITHUB_TOKEN }}
4549 run : |
4650 make build_deploy
47- - name : Deploy Jekyll site
48- run : |
49- git config --global user.name "GitHub Action"
50- git config --global user.email "[email protected] " 51- export remote_repo="https://x-access-token:${{ secrets.DEPLOY_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git"
52- export remote_branch="gh-pages"
53- cd _site/
54- git init
55- git add .
56- git commit -m "Rebuild"
57- git push --force $remote_repo master:$remote_branch > /dev/null 2>&1
58- echo "Done"
51+ - name : Upload artifact
52+ uses : actions/upload-pages-artifact@v3
53+
54+ deploy :
55+ environment :
56+ name : github-pages
57+ url : ${{ steps.deployment.outputs.page_url }}
58+ runs-on : ubuntu-latest
59+ needs : build
60+ steps :
61+ - name : Deploy to GitHub Pages
62+ id : deployment
63+ uses : actions/deploy-pages@v4
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments