mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-21 13:19:22 +01:00
Ok, hopefully fix messed up tag_name
Seems working but need better tag name
This commit is contained in:
parent
cd57e97e2b
commit
e4b6637680
1 changed files with 5 additions and 3 deletions
8
.github/workflows/prodtag.yml
vendored
8
.github/workflows/prodtag.yml
vendored
|
@ -14,15 +14,17 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: production
|
ref: production
|
||||||
- run: git tag "`date +%Y.%m.%d`.`git rev-parse --short HEAD`" $(git rev-parse HEAD)
|
# - run: git tag "`date +%Y.%m.%d`.`git rev-parse --short HEAD`" $(git rev-parse HEAD)
|
||||||
- run: git push --tags
|
# - run: git push --tags
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 18
|
||||||
- run: npm ci && npm run build
|
- run: npm ci && npm run build
|
||||||
- run: cd dist && zip -r ../phanpy-dist.zip . && cd ..
|
- run: cd dist && zip -r ../phanpy-dist.zip . && cd ..
|
||||||
|
- id: tag_name
|
||||||
|
run: echo ::set-output name=tag_name::$(date +%Y.%m.%d).$(git rev-parse --short HEAD)
|
||||||
- uses: softprops/action-gh-release@v1
|
- uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ github.ref_name }}
|
tag_name: ${{ steps.tag_name.outputs.tag_name }}
|
||||||
generate_release_notes: true
|
generate_release_notes: true
|
||||||
files: phanpy-dist.zip
|
files: phanpy-dist.zip
|
||||||
|
|
Loading…
Reference in a new issue