-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: adding docs to release please (#3571)
# Description This PR attempts to add docs to release_please ## Problem\* So far our attempts with docs workflows have been unsuccessful. The latest try was almost there, but it implied having a PR after the release is merged, which would actually make the docs show up _after_ the tag, not before. So when the release was tagged as stable, it wouldn't have the docs at that point in time. ## Summary\* This change attempts to do some blind changes, as I tried faking master with another branch and somehow didn't make it actually trigger new tags. --------- Co-authored-by: Tom French <tom@tomfren.ch>
- Loading branch information
1 parent
bdec5a2
commit beaf402
Showing
7 changed files
with
105 additions
and
198 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,57 @@ | ||
name: Publish documentation | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
noir-ref: | ||
description: The noir reference to checkout | ||
required: false | ||
default: 'master' | ||
|
||
jobs: | ||
publish-docs: | ||
name: Publish docs | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout release branch | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.noir-ref }} | ||
token: ${{ secrets.NOIR_RELEASES_TOKEN }} | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '18' | ||
|
||
- name: Install wasm-bindgen-cli | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: wasm-bindgen-cli@0.2.86 | ||
|
||
- name: Install wasm-opt | ||
run: | | ||
npm i wasm-opt -g | ||
- name: Install Yarn dependencies | ||
uses: ./.github/actions/setup | ||
|
||
- name: Build docs for deploying | ||
working-directory: docs | ||
run: | ||
yarn workspaces foreach -Rt run build | ||
|
||
- name: Deploy to Netlify | ||
uses: nwtgck/actions-netlify@v2.1 | ||
with: | ||
publish-dir: './docs/build' | ||
production-branch: master | ||
production-deploy: true | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
enable-github-deployment: false | ||
deploy-message: "Deploy from GitHub Actions for tag ${{ inputs.noir-ref }}" | ||
env: | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | ||
timeout-minutes: 1 |
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