Skip to content

Commit c0ba0ea

Browse files
Updated documentation build workflow
1 parent 15b0e88 commit c0ba0ea

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

.github/workflows/update-doc.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches: [main]
66

77
jobs:
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

0 commit comments

Comments
 (0)