Skip to content

Commit

Permalink
update: update release
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-Shen committed Feb 4, 2024
1 parent 9c3eb07 commit e372059
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Set test pip url
if: ${{ github.head_ref == 'alpha' }}
run: |
echo "PYPI_URL=https://test.pypi.org/project/labelu/#files" >> $GITHUB_ENV
- name: Set release pip url
if: ${{ github.head_ref == 'main' }}
run: |
echo "PYPI_URL=https://pypi.org/project/labelu/#files" >> $GITHUB_ENV
# - name: Inject backend info into frontend
# uses: satackey/[email protected]
# id: InjectBackend
Expand Down Expand Up @@ -121,4 +131,4 @@ jobs:
with:
url: ${{ secrets.WEBHOOK_URL }}
headers: '{"Content-Type": "application/json"}'
body: '{"msgtype":"markdown","markdown":{"content":"# LabelU@${{ env.NEXT_VERSION }} is Released 🎉\n \nCheck it out now \ud83d\udc49\ud83c\udffb [v${{ env.NEXT_VERSION }}](https://pypi.org/project/labelu/#files) \n \n ## Changelog \n \n${{ github.event.head_commit.message }}"}}'
body: '{"msgtype":"markdown","markdown":{"content":"# LabelU@${{ env.NEXT_VERSION }} is Released 🎉\n \nCheck it out now \ud83d\udc49\ud83c\udffb [v${{ env.NEXT_VERSION }}](${{ env.PYPI_URL }}) \n \n ## Changelog \n \n${{ ENV.RELEASE_NOTES }}"}}'
4 changes: 0 additions & 4 deletions .github/workflows/trigger_from_labelu_kit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ on:
description: 'Frontend assets url'
required: true
type: string
changelog:
description: 'Frontend changelog'
required: false
type: string
jobs:
update-frontend:
strategy:
Expand Down
3 changes: 2 additions & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
[
"@semantic-release/exec",
{
"verifyReleaseCmd": "echo \"NEXT_VERSION=${nextRelease.version}\" >> $GITHUB_ENV"
"verifyReleaseCmd": "echo \"NEXT_VERSION=${nextRelease.version}\" >> $GITHUB_ENV",
"successCmd": "echo \"RELEASE_NOTES=${nextRelease.notes}\" >> $GITHUB_ENV"
}
]
]
Expand Down

0 comments on commit e372059

Please sign in to comment.