1
0
mirror of https://github.com/kuohuanhuan/x-markdown-css.git synced 2024-11-25 06:18:19 +00:00

chore(ci): remove duplicate github.ref in if statement

This commit is contained in:
2023-03-03 20:04:26 +08:00
parent ff06dee900
commit f53b3062c2

View File

@ -46,18 +46,18 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Step VIII
# - Pre-release
# / pre-release
- name: GitHub Release (pre-release)
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && contains(github.ref, '-')
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && contains('-')
uses: softprops/action-gh-release@v1
with:
prerelease: true
files: |
dist/*
build.tar.gz
# - Release
# / release
- name: GitHub Release (release)
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && contains(github.ref, '-') == false
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && contains('-') == false
uses: softprops/action-gh-release@v1
with:
prerelease: false