Skip to content

Commit

Permalink
ci(release): always mark release as prerelease (make latest requires … (
Browse files Browse the repository at this point in the history
#3613)

* ci(release): always mark release as prerelease (make latest requires manual ops)

* update
  • Loading branch information
wsxiaoys authored Dec 26, 2024
1 parent 01f91a9 commit 9a6d9ca
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -345,23 +345,12 @@ jobs:
- name: Display structure of created files
run: ls -R dist

- name: Determine is stable release
run: |
if [[ ${{ github.ref_name }} =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "STABLE_RELEASE=true" >> $GITHUB_ENV
else
echo "STABLE_RELEASE=false" >> $GITHUB_ENV
fi
- name: Check if stable release
run: echo "Stable Release is ${{ env.STABLE_RELEASE }}"

- uses: ncipollo/release-action@v1
if: github.event_name == 'push'
with:
allowUpdates: true
prerelease: ${{ env.STABLE_RELEASE == 'false' }}
makeLatest: ${{ env.STABLE_RELEASE == 'true' }}
prerelease: true
makeLatest: false
artifacts: "dist/tabby_*.zip,dist/tabby_*.tar.gz"
tag: ${{ github.ref_name }}
removeArtifacts: true

0 comments on commit 9a6d9ca

Please sign in to comment.