File tree Expand file tree Collapse file tree 1 file changed +16
-9
lines changed
Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Original file line number Diff line number Diff line change 55 branches : [main]
66
77jobs :
8- deploy :
8+ build :
99 runs-on : ubuntu-latest
1010 steps :
1111 - name : Checkout code
@@ -24,13 +24,20 @@ jobs:
2424
2525 - name : Build documentation
2626 run : mkdocs build
27- working-directory : ./Doc
2827
29- - name : Deploy to site host
30- uses : airvzxf/ftp-deployment-action@latest
28+ - name : Upload artifact
29+ uses : actions/upload-pages-artifact@v2
3130 with :
32- server : ${{ secrets.SFTP_SERVER }}
33- user : ${{ secrets.SFTP_USERNAME }}
34- password : ${{ secrets.SFTP_PSW }}
35- local_dir : ' ./Doc/site'
36- remote_dir : ${{ secrets.CF_SITE_DIR }}
31+ path : ./Doc
32+
33+ deploy :
34+ needs : build
35+ runs-on : ubuntu-latest
36+ environment :
37+ name : github-pages
38+ url : ${{ steps.deployment.outputs.page_url }}
39+
40+ steps :
41+ - name : Deploy to GitHub Pages
42+ id : deployment
43+ uses : actions/deploy-pages@v3
You can’t perform that action at this time.
0 commit comments