File tree Expand file tree Collapse file tree 2 files changed +22
-66
lines changed Expand file tree Collapse file tree 2 files changed +22
-66
lines changed Original file line number Diff line number Diff line change 77 schedule :
88 - cron : ' 0 18 * * *'
99
10+ permissions :
11+ contents : read
12+ pages : write
13+ id-token : write
14+
15+ concurrency :
16+ group : " pages"
17+ cancel-in-progress : false
18+
1019jobs :
1120 build :
1221 runs-on : ubuntu-latest
@@ -44,15 +53,16 @@ jobs:
4453 JEKYLL_GITHUB_TOKEN : ${{ secrets.JEKYLL_GITHUB_TOKEN }}
4554 run : |
4655 make build_deploy
47- - name : Deploy Jekyll site
48- run : |
49- git config --global user.name "GitHub Action"
50- git config --global user.email "reserve.dev@gmail.com"
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"
56+ - name : Upload artifact
57+ uses : actions/upload-pages-artifact@v3
58+
59+ deploy :
60+ environment :
61+ name : github-pages
62+ url : ${{ steps.deployment.outputs.page_url }}
63+ runs-on : ubuntu-latest
64+ needs : build
65+ steps :
66+ - name : Deploy to GitHub Pages
67+ id : deployment
68+ uses : actions/deploy-pages@v4
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments