experimenting with the tag name output
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1s
Details
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1s
Details
parent
b7c4aa320b
commit
41ba5c81d0
|
|
@ -8,6 +8,10 @@ jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: node-01
|
runs-on: node-01
|
||||||
steps:
|
steps:
|
||||||
|
- name: Print Tag
|
||||||
|
run: echo ${{github.ref_name}}
|
||||||
|
run: echo ${GITHUB_REF##*/}
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
|
@ -24,7 +28,7 @@ jobs:
|
||||||
|
|
||||||
- name: Build project
|
- name: Build project
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ github.ref_name }}
|
VERSION: ${GITHUB_REF##*/}
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
- name: Package build output
|
- name: Package build output
|
||||||
|
|
@ -32,6 +36,7 @@ jobs:
|
||||||
cd ./dist
|
cd ./dist
|
||||||
zip -r release.zip . # Adjust the path to your build output directory
|
zip -r release.zip . # Adjust the path to your build output directory
|
||||||
mv release.zip /tmp/release.zip
|
mv release.zip /tmp/release.zip
|
||||||
|
|
||||||
- name: Package Upload
|
- name: Package Upload
|
||||||
uses: akkuman/gitea-release-action@v1
|
uses: akkuman/gitea-release-action@v1
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue