Skip to content

build: automate pr to website #954

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions .github/workflows/on-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,18 @@ jobs:
node-version-file: '.nvmrc'
- id: version
run: echo "version=$(echo ${{ github.ref }} | sed 's/refs\/tags\/v//')" >> $GITHUB_OUTPUT
- name: setup git config
run: |
git config user.name github-actions
git config user.email github-actions@github.com
- run: git checkout -b "bump/${{ steps.version.outputs.version }}"
- run: pnpm version ${{ steps.version.outputs.version }}
- run: git push origin "bump/${{ steps.version.outputs.version }}"
- uses: actions/github-script@v7
- uses: peter-evans/create-pull-request@v6
with:
script: |
core.notice('Create PR by going to: https://github.com/gitify-app/website/compare/bump/${{ steps.version.outputs.version }}')
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'docs: update latest release to ${{ steps.version.outputs.version }}'
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
signoff: false
branch: 'bump/${{ steps.version.outputs.version }}'
delete-branch: true
title: 'docs: update latest release to ${{ steps.version.outputs.version }}'
body: |
Update latest release to ${{ steps.version.outputs.version }}
labels: |
documentation
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ The release process is automated. Follow the steps below.
4. In the same branch, **bump the version** of the app by running `pnpm version <new-version-number`. Commit these changes and open a PR. A GitHub Actions workflow will build, sign and upload the release assets for each commit to that branch as long as a branch is named like `release/vX.X.X` and there is a draft release with the same version number(`package.json`).
5. Merge your release branch into `main`.
6. Publish the release once you've finalized the release notes and confirmed all assets are there.
7. Raise and merge a pull request in [gitify-app/website][github-website] using the automatically created branch (ie: `bump/v1.2.3`)
7. Merge the open pull request in [gitify-app/website](https://github.com/gitify-app/website/pulls) (ie: `bump/v1.2.3`)

### Tests

Expand Down