-
Notifications
You must be signed in to change notification settings - Fork 5
42 lines (36 loc) · 960 Bytes
/
netlify.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
38
39
40
41
42
name: Deploy docs to netlify
on:
workflow_dispatch: {}
push:
branches:
- main
env:
MEILISEARCH_URL: ${{ secrets.MEILISEARCH_URL }}
MEILISEARCH_API_KEY: ${{ secrets.MEILISEARCH_API_KEY }}
MEILISEARCH_INDEX_UID: ${{ secrets.MEILISEARCH_INDEX_UID}}
jobs:
deploy-netlify:
name: deploy-to-netlify
runs-on: ubuntu-latest
permissions:
contents: read
deployments: read
steps:
- uses: actions/checkout@v4
- name: Set Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Build docs.gno.land
working-directory: ./docusaurus
run: |
yarn run download-docs
yarn install
yarn build
- name: Deploy to netlify
uses: netlify/actions/cli@master
with:
args: deploy --site gno-docs --prod
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}