-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 892 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Deploy to Nekoweb
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build redocly static page
run: |
mkdir build
npx @redocly/cli build-docs openapi/openapi.yaml -o build/index.html
cp docs/favicon.ico build/favicon.ico
- name: Upload build artifacts
uses: actions/upload-artifact@v2
with:
name: build
path: ./build
- name: Deploy to Nekoweb
uses: mp-pinheiro/nekoweb-deploy@0.2.1
with:
API_KEY: ${{ secrets.API_KEY }}
BUILD_DIR: './build'
DEPLOY_DIR: '/nekoapi'
CLEANUP: 'False'
DELAY: '0.5'
NEKOWEB_PAGENAME: 'fairfruit'
ENCRYPTION_KEY: ${{ secrets.NEKOWEB_ENCRYPTION_KEY }}