34 lines
777 B
YAML
34 lines
777 B
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
branches: [ "master" ]
|
|
pull_request:
|
|
branches: [ "master" ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
if: "!contains(github.event.head_commit.message, 'ci skip')"
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: https://codeberg.org/mlugg/setup-zig@v2
|
|
|
|
- name: Building
|
|
run: zig build soft
|
|
|
|
- name: Generating docs
|
|
run: zig build docs
|
|
|
|
- name: SFTP-Deploy-Action
|
|
uses: milanmk/actions-file-deployer@master
|
|
with:
|
|
remote-protocol: sftp
|
|
remote-host: ${{ secrets.SFTP_HOST_DOCS }}
|
|
remote-user: ${{ secrets.SFTP_USER_DOCS }}
|
|
remote-password: ${{ secrets.SFTP_PASSWORD_DOCS }}
|
|
local_path: './zig-out/docs/*'
|
|
remote-path: /www
|
|
remote-port: 6969
|