-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into tf/function-exports
- Loading branch information
Showing
610 changed files
with
15,772 additions
and
1,166 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
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,112 @@ | ||
name: Cut a new version of the docs | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: The tag to build Docs for | ||
required: false | ||
|
||
jobs: | ||
publish-docs: | ||
runs-on: ubuntu-latest | ||
if: ${{ inputs.tag != '' }} | ||
permissions: | ||
pull-requests: write | ||
contents: write | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.tag }} | ||
|
||
- name: Create new branch | ||
run: | | ||
git checkout -b new-docs-version-${{ github.event.inputs.tag }} | ||
- 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: [email protected] | ||
|
||
- name: Install wasm-opt | ||
run: | | ||
npm i wasm-opt -g | ||
- name: Install Yarn | ||
run: npm install -g yarn | ||
|
||
- name: Install Yarn dependencies | ||
run: yarn | ||
|
||
- name: Build acvm_js | ||
run: yarn workspace @noir-lang/acvm_js build | ||
|
||
- name: Build noirc_abi | ||
run: yarn workspace @noir-lang/noirc_abi build | ||
|
||
- name: Build noir_js_types | ||
run: yarn workspace @noir-lang/types build | ||
|
||
- name: Build barretenberg wrapper | ||
run: yarn workspace @noir-lang/backend_barretenberg build | ||
|
||
- name: Run noir_js | ||
run: | | ||
yarn workspace @noir-lang/noir_js build | ||
- name: Build docs | ||
run: | ||
yarn workspace docs build | ||
|
||
- name: Cut a new version | ||
working-directory: ./docs | ||
run: yarn docusaurus docs:version ${{ inputs.tag }} | ||
|
||
- name: Remove pre-releases | ||
id: get_version | ||
run: | | ||
cd docs && yarn setStable | ||
- name: Commit new documentation version | ||
run: | | ||
git config --local user.name 'signorecello' | ||
git config --local user.email '[email protected]' | ||
git add . | ||
git commit -m "chore(docs): cut new docs version for tag ${{ github.event.inputs.tag }}" | ||
- name: Push changes to new branch | ||
run: git push origin new-docs-version-${{ github.event.inputs.tag }} | ||
|
||
- name: Create Pull Request | ||
run: | | ||
gh pr create \ | ||
--title "chore(docs): docs for ${{ github.event.inputs.tag }}" \ | ||
--body "Updates documentation to new version for tag ${{ github.event.inputs.tag }}." \ | ||
--base master \ | ||
--head new-docs-version-${{ github.event.inputs.tag }} \ | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build docs | ||
run: yarn workspace docs build | ||
|
||
- name: Deploy to Netlify | ||
uses: nwtgck/[email protected] | ||
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.tag }}" | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Build docs | ||
name: Deploy preview for PR | ||
|
||
on: | ||
pull_request: | ||
|
@@ -47,7 +47,7 @@ jobs: | |
}) | ||
} | ||
build_and_deploy: | ||
build_and_deploy_preview: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
|
@@ -62,18 +62,44 @@ jobs: | |
with: | ||
node-version: '18' | ||
|
||
- name: Install wasm-bindgen-cli | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: [email protected] | ||
|
||
- name: Install wasm-opt | ||
run: | | ||
npm i wasm-opt -g | ||
- name: Install dependencies | ||
run: yarn | ||
|
||
- name: Build docs | ||
run: yarn workspace docs build | ||
|
||
- name: Build acvm_js | ||
run: yarn workspace @noir-lang/acvm_js build | ||
|
||
- name: Build noirc_abi | ||
run: yarn workspace @noir-lang/noirc_abi build | ||
|
||
- name: Build noir_js_types | ||
run: yarn workspace @noir-lang/types build | ||
|
||
- name: Build barretenberg wrapper | ||
run: yarn workspace @noir-lang/backend_barretenberg build | ||
|
||
- name: Run noir_js | ||
run: | | ||
yarn workspace @noir-lang/noir_js build | ||
- name: Remove pre-releases | ||
working-directory: docs | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: yarn setStable | ||
|
||
- name: Build docs | ||
run: | ||
yarn workspace docs build | ||
|
||
- name: Deploy to Netlify | ||
uses: nwtgck/[email protected] | ||
with: | ||
|
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,72 @@ | ||
name: Rebuild docs with the latest release | ||
|
||
on: | ||
release: | ||
types: [released] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build_and_deploy: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- 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: [email protected] | ||
|
||
- name: Install wasm-opt | ||
run: | | ||
npm i wasm-opt -g | ||
- name: Install dependencies | ||
run: yarn | ||
|
||
- name: Build acvm_js | ||
run: yarn workspace @noir-lang/acvm_js build | ||
|
||
- name: Build noirc_abi | ||
run: yarn workspace @noir-lang/noirc_abi build | ||
|
||
- name: Build noir_js_types | ||
run: yarn workspace @noir-lang/types build | ||
|
||
- name: Build barretenberg wrapper | ||
run: yarn workspace @noir-lang/backend_barretenberg build | ||
|
||
- name: Run noir_js | ||
run: | | ||
yarn workspace @noir-lang/noir_js build | ||
- name: Remove pre-releases | ||
working-directory: docs | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: yarn setStable | ||
|
||
- name: Build docs | ||
run: | ||
yarn workspace docs build | ||
|
||
- name: Deploy to Netlify | ||
uses: nwtgck/[email protected] | ||
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 release" | ||
env: | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | ||
timeout-minutes: 1 |
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 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
Oops, something went wrong.