fixing CI
This commit is contained in:
@@ -24,6 +24,12 @@ jobs:
|
|||||||
- name: Generating docs
|
- name: Generating docs
|
||||||
run: zig build docs
|
run: zig build docs
|
||||||
|
|
||||||
|
- name: Prepare docs deploy payload
|
||||||
|
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
||||||
|
run: |
|
||||||
|
mkdir -p ./deploy-docs
|
||||||
|
cp ./zig-out/docs/index.html ./deploy-docs/404.html
|
||||||
|
|
||||||
- name: Deploying docs
|
- name: Deploying docs
|
||||||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
||||||
uses: milanmk/actions-file-deployer@master
|
uses: milanmk/actions-file-deployer@master
|
||||||
@@ -33,6 +39,6 @@ jobs:
|
|||||||
remote-user: ${{ secrets.SFTP_USER_DOCS }}
|
remote-user: ${{ secrets.SFTP_USER_DOCS }}
|
||||||
remote-password: ${{ secrets.SFTP_PASSWORD_DOCS }}
|
remote-password: ${{ secrets.SFTP_PASSWORD_DOCS }}
|
||||||
remote-port: 6969
|
remote-port: 6969
|
||||||
local-path: ./zig-out/docs/index.html
|
local-path: "./deploy-docs"
|
||||||
remote-path: /www/error/404.html
|
remote-path: "/www/error"
|
||||||
sync: full
|
sync: full
|
||||||
|
|||||||
Reference in New Issue
Block a user