experimenting with the tag name output
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1s Details

pull/11/head
macniel 2025-09-25 16:18:12 +02:00
parent b7c4aa320b
commit 41ba5c81d0
1 changed files with 6 additions and 1 deletions

View File

@ -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: