mirror of
https://github.com/CzBiX/qb-web.git
synced 2026-04-14 10:19:48 +08:00
Refine nightly tag name
This commit is contained in:
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@@ -39,10 +39,9 @@ jobs:
|
||||
- run: yarn install --frozen-lockfile
|
||||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
|
||||
- run: echo ::set-env name=COMMIT_ID::$(echo ${{ github.sha }} | cut -c -6)
|
||||
- run: echo ::set-env name=GIT_TAG::nightly-$COMMIT_ID
|
||||
- run: echo ::set-env name=RELEASE_TITLE::$(date +'%Y%m%d')
|
||||
- run: echo ::set-env name=RELEASE_FILE::qb-web-$RELEASE_TITLE.zip
|
||||
- run: echo ::set-env name=RELEASE_DATE::$(date +'%Y%m%d')
|
||||
- run: echo ::set-env name=GIT_TAG::nightly-$RELEASE_DATE
|
||||
- run: echo ::set-env name=RELEASE_FILE::qb-web-$GIT_TAG.zip
|
||||
- name: Pack Release
|
||||
run: |
|
||||
yarn run build
|
||||
@@ -60,7 +59,7 @@ jobs:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ env.GIT_TAG }}
|
||||
release_name: ${{ env.RELEASE_TITLE }}
|
||||
release_name: ${{ env.GIT_TAG }}
|
||||
prerelease: true
|
||||
- uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user