Skip to content

Commit

Permalink
chore: add changelog link to github release note (#1093)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocavue authored Jul 15, 2022
1 parent 5b6e884 commit 04fd0a7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 453 deletions.
26 changes: 10 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ jobs:
runs-on: macos-latest
concurrency: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.electron_build_target }}
needs:
- test
- draft_release
- create_github_release
strategy:
matrix:
electron_build_target:
Expand Down Expand Up @@ -199,7 +198,7 @@ jobs:
lhci autorun --config .lighthouserc.home.json
if: steps.step_vercel_home.outcome == 'success'

draft_release:
create_github_release:
runs-on: ubuntu-latest
concurrency: global_concurrency_draft_release
needs:
Expand All @@ -213,23 +212,18 @@ jobs:
echo "Current app version is $RINO_APP_VERSION"
echo "RINO_APP_VERSION=$RINO_APP_VERSION" >> $GITHUB_ENV
- name: Create draft GitHub release
uses: softprops/action-gh-release@v1
if: ${{ github.ref == 'refs/heads/changeset-release/master' }}
with:
draft: true
prerelease: false
name: "${{ env.RINO_APP_VERSION }}"
tag_name: "${{ env.RINO_APP_VERSION }}"

- name: Create prerelease GitHub release
uses: softprops/action-gh-release@v1
if: ${{ github.ref == 'refs/heads/master' }}
uses: ncipollo/release-action@v1
if: ${{ github.ref == 'refs/heads/changeset-release/master' || github.ref == 'refs/heads/master' }}
with:
draft: false
allowUpdates: false
prerelease: true
name: "${{ env.RINO_APP_VERSION }}"
tag_name: "${{ env.RINO_APP_VERSION }}"
tag: "${{ env.RINO_APP_VERSION }}"
body: |
This is a release for the desktop app.
Please refer to [CHANGELOG.md](https://github.com/ocavue/rino/blob/${{ env.RINO_APP_VERSION }}/packages/electron/CHANGELOG.md) for details."
release:
runs-on: ubuntu-latest
Expand Down
Loading

0 comments on commit 04fd0a7

Please sign in to comment.