-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add netlify deploy workflow (#3)
* chore: deploy without comminting docs directory * fix: download-docs script * chore: remove debug * chore(ci): github action netlify * chore(ci): netlify cli deploy * chore: netlify update workflow * chore(ci): build website * fix: add working-dir * chore: update for gnolang/docs.gno.land repo * chore: change branch deploy
- Loading branch information
Showing
6 changed files
with
50 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Deploy docs to netlify | ||
|
||
on: | ||
workflow_dispatch: {} | ||
push: | ||
branches: | ||
- main | ||
|
||
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
.idea | ||
.netlify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
ROOT_DIR="$(dirname "$0")/.." | ||
|
||
wget -O /tmp/gno.zip "https://github.com/gnolang/gno/archive/refs/heads/master.zip" | ||
unzip -d /tmp/ /tmp/gno.zip | ||
|
||
cp -r /tmp/gno-master/docs ${ROOT_DIR}/docs |