-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move actual publishing into a separate workflow
- Loading branch information
1 parent
b5b8680
commit dd05b96
Showing
2 changed files
with
64 additions
and
40 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,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