File tree Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change 1- name : Deploy to Github Pages
1+ name : Deploy to Production Environment
22
33on :
4- push :
5- branches :
6- - master
4+ release :
5+ types : [published]
76
87jobs :
9- deploy :
10- name : Deploy to GH Pages
8+ deploy-client :
9+ name : Build and Deploy GitHub Pages
10+ if : github.event.release.target_commitish == 'master'
1111 runs-on : ubuntu-latest
1212 steps :
13- - name : Checkout Repository
14- uses : actions/checkout@master
15- - name : Deploy
13+ - name : Checkout the repository
14+ uses : actions/checkout@v3
15+ with :
16+ ref : ${{ github.event.release.tag_name }}
17+ - name : List files for publish
18+ run : cd public && ls -l -a
19+ - name : Deploy to Github Pages
1620 uses : peaceiris/actions-gh-pages@v3
1721 with :
1822 github_token : ${{ secrets.GITHUB_TOKEN }}
19- publish_dir : ./ public
23+ publish_dir : public
2024 publish_branch : gh-pages
You can’t perform that action at this time.
0 commit comments