Skip to content

Commit

Permalink
chore: trigger docs deploy (#1801)
Browse files Browse the repository at this point in the history
This trigger the github action `netlify.yml` on
[gnolang/docs.gno.land](https://github.com/gnolang/docs.gno.land) when a
merge is done on master and the docs/ folder have updates.

I will need someone (cc: @moul ) to create and add a PAT to this repo
secret 🙏🏼

EDIT:

This PR: 

- Bring a dev env for the docs.
- Add github action to call gnolang/docs.gno.land netlify deploy action

I'm currently working on a netlify preview, but it's a bit more complexe
than expected, it will come in another PR.

<details><summary>Contributors' checklist...</summary>

- [ ] Added new tests, or not needed, or not feasible
- [ ] Provided an example (e.g. screenshot) to aid review or the PR is
self-explanatory
- [ ] Updated the official documentation or not needed
- [ ] No breaking changes were made, or a `BREAKING CHANGE: xxx` message
was included in the description
- [ ] Added references to related issues and PRs
- [ ] Provided any useful hints for running manual tests
- [ ] Added new benchmarks to [generated
graphs](https://gnoland.github.io/benchmarks), if any. More info
[here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md).
</details>
  • Loading branch information
albttx authored Apr 29, 2024
1 parent 268b875 commit de2fc45
Show file tree
Hide file tree
Showing 17 changed files with 22 additions and 8,628 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: deploy docs on gnolang/docs.gno.land repository
on:
push:
branches:
- master
paths:
- "docs/**"

jobs:
trigger-netlify-docs-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v6
with:
github-token: ${{ secrets.DOCS_DEPLOY_PAT }}
script: |
await github.rest.actions.createworkflowDispatch({
owner: 'gnolang',
repo: 'docs.gno.land',
workflow_id: 'netlify.yml',
ref: 'main'
})
29 changes: 0 additions & 29 deletions .github/workflows/docusaurus.yml

This file was deleted.

21 changes: 0 additions & 21 deletions misc/docusaurus/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion misc/docusaurus/.yarnrc.yml

This file was deleted.

3 changes: 0 additions & 3 deletions misc/docusaurus/babel.config.js

This file was deleted.

183 changes: 0 additions & 183 deletions misc/docusaurus/docusaurus.config.js

This file was deleted.

47 changes: 0 additions & 47 deletions misc/docusaurus/package.json

This file was deleted.

167 changes: 0 additions & 167 deletions misc/docusaurus/sidebars.js

This file was deleted.

Loading

0 comments on commit de2fc45

Please sign in to comment.