fixing CI
This commit is contained in:
@@ -9,10 +9,13 @@ on:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
if: "!contains(github.event.head_commit.message, 'ci skip')"
|
||||
if: ${{ github.event_name != 'push' || !contains(github.event.head_commit.message, 'ci skip') }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- uses: https://codeberg.org/mlugg/setup-zig@v2
|
||||
|
||||
- name: Building
|
||||
@@ -22,12 +25,14 @@ jobs:
|
||||
run: zig build docs
|
||||
|
||||
- name: Deploying docs
|
||||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
||||
uses: milanmk/actions-file-deployer@master
|
||||
with:
|
||||
sftp_only: true
|
||||
server: ${{ secrets.SFTP_HOST_DOCS }}
|
||||
username: ${{ secrets.SFTP_USER_DOCS }}
|
||||
password: ${{ secrets.SFTP_PASSWORD_DOCS }}
|
||||
local_path: './zig-out/docs/*'
|
||||
remote_path: /www
|
||||
port: 6969
|
||||
remote-protocol: sftp
|
||||
remote-host: ${{ secrets.SFTP_HOST_DOCS }}
|
||||
remote-user: ${{ secrets.SFTP_USER_DOCS }}
|
||||
remote-password: ${{ secrets.SFTP_PASSWORD_DOCS }}
|
||||
remote-port: 6969
|
||||
local-path: ./zig-out/docs
|
||||
remote-path: /www
|
||||
sync: full
|
||||
|
||||
Reference in New Issue
Block a user