Skip to content

Commit

Permalink
chore(docs): making release-please commit new version to the repo (#3417
Browse files Browse the repository at this point in the history
)
  • Loading branch information
signorecello authored Nov 6, 2023
1 parent 16e8215 commit c7da833
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 'github@zepedro.me'
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

Expand All @@ -55,3 +81,4 @@ jobs:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 1

1 comment on commit c7da833

@github-actions
Copy link
Contributor

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

Please sign in to comment.