Skip to content

Commit

Permalink
changing to gh cli
Browse files Browse the repository at this point in the history
  • Loading branch information
signorecello committed Nov 3, 2023
1 parent b9cd9df commit 7b2e753
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,25 @@ jobs:
- name: Push changes to new branch
run: git push origin new-docs-version-${{ github.event.inputs.tag }}

# - name: Create Pull Request
# uses: peter-evans/create-pull-request@v4
# with:
# title: 'New Docs Version for ${{ github.event.inputs.tag }}'
# commit-message: "chore(docs): cut new docs version for tag ${{ github.event.inputs.tag }}"
# branch: new-docs-version-${{ github.event.inputs.tag }}
# body: |
# Updates documentation to new version for tag ${{ github.event.inputs.tag }}.
# base: master # or main or whichever branch you want to merge to
# labels: documentation
# token: ${{ secrets.GITHUB_TOKEN }}

- name: Install GitHub CLI
run: |
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
sudo apt update
sudo apt install gh
# This step creates a pull request using GitHub CLI
- name: Create Pull Request
run: |
gh pr create \
--title "New Docs Version 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: Remove pre-releases
id: get_version
Expand Down

1 comment on commit 7b2e753

@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://6544d098247b88183c1722c3--noir-docs.netlify.app

Please sign in to comment.