Create deploy.yaml
Some checks failed
Build and Deploy / build_and_deploy (push) Failing after 1m10s
Some checks failed
Build and Deploy / build_and_deploy (push) Failing after 1m10s
This commit is contained in:
parent
32384be429
commit
9a5ee6153e
31
.gitea/workflows/deploy.yaml
Normal file
31
.gitea/workflows/deploy.yaml
Normal file
@ -0,0 +1,31 @@
|
||||
name: Build and Deploy
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
build_and_deploy:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: mcr.microsoft.com/devcontainers/dotnet
|
||||
steps:
|
||||
- name: Install prerequisites
|
||||
run: dotnet tool update -g docfx
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
- name: Compile Web Pages
|
||||
run: docfx
|
||||
- name: SFTP Deploy
|
||||
uses: wlixcc/SFTP-Deploy-Action@v1.2.5
|
||||
with:
|
||||
username: '${{ vars.SSH_USER }}'
|
||||
server: '${{ vars.SSH_SERVER }}'
|
||||
port: '${{ vars.SSH_PORT }}'
|
||||
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
local_path: './_site/*'
|
||||
remote_path: '${{ vars.DESTINATION }}'
|
||||
sftpArgs: -o ConnectTimeout=10
|
||||
rsyncArgs: --exclude=.*
|
Loading…
Reference in New Issue
Block a user