-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docs): making release-please commit new version to the repo (#3417
- Loading branch information
1 parent
16e8215
commit c7da833
Showing
1 changed file
with
28 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -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 | ||
|
c7da833
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://noir-lang.org as production
🚀 Deployed on https://654960eae9e40804850ce652--noir-docs.netlify.app