-
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.
Merge branch 'master' into new-docs-version-v0.19.0
- Loading branch information
Showing
136 changed files
with
1,842 additions
and
629 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 |
---|---|---|
|
@@ -2,6 +2,7 @@ name: Build docs | |
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
add_label: | ||
|
@@ -62,11 +63,37 @@ 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 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 | ||
run: | ||
yarn workspace docs build | ||
|
||
- name: Remove pre-releases | ||
working-directory: docs | ||
|
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 |
---|---|---|
|
@@ -13,12 +13,17 @@ jobs: | |
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: | ||
|
@@ -33,12 +38,33 @@ jobs: | |
- 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 }} \ | ||
--label documentation | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build docs | ||
run: yarn workspace docs build | ||
|
||
|
@@ -55,3 +81,4 @@ jobs: | |
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
Oops, something went wrong.