mirror of
https://github.com/darkzoul5/YoutubePlaylistSync.git
synced 2026-07-03 12:34:00 +03:00
Add tag extraction step and update Windows package upload to use extracted tag
This commit is contained in:
@@ -25,6 +25,13 @@ jobs:
|
|||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install -y unzip zip curl
|
sudo apt install -y unzip zip curl
|
||||||
|
|
||||||
|
- name: Extract tag name
|
||||||
|
run: |
|
||||||
|
REF="${GITEA_REF:-$GITHUB_REF}"
|
||||||
|
TAG="${REF#refs/tags/}"
|
||||||
|
echo "TAG=$TAG"
|
||||||
|
echo "GITEA_REF=${GITEA_REF}"
|
||||||
|
|
||||||
- name: Prepare Windows package
|
- name: Prepare Windows package
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
@@ -59,9 +66,17 @@ jobs:
|
|||||||
- name: Upload Windows release
|
- name: Upload Windows release
|
||||||
uses: https://gitea.com/actions/gitea-release-action@v1
|
uses: https://gitea.com/actions/gitea-release-action@v1
|
||||||
with:
|
with:
|
||||||
files: $WORKSPACE_ROOT/yt-playlist-windows-${{ gitea.ref_name }}.zip
|
files: $WORKSPACE_ROOT/yt-playlist-windows-$TAG.zip
|
||||||
tag_name: ${{ gitea.ref_name }}
|
tag_name: $TAG
|
||||||
name: ${{ gitea.ref_name }}
|
name: $TAG
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
linux-package:
|
linux-package:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
name: Test Gitea Variables
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- "v*.*.*"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
print-vars:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Print all available Gitea variables
|
||||||
|
run: |
|
||||||
|
echo "ref_name: ${{ gitea.ref_name }}"
|
||||||
|
echo "ref: ${{ gitea.ref }}"
|
||||||
|
echo "repository: ${{ gitea.repository }}"
|
||||||
|
echo "event_name: ${{ gitea.event_name }}"
|
||||||
|
echo "sha: ${{ gitea.sha }}"
|
||||||
|
echo "workflow: ${{ gitea.workflow }}"
|
||||||
Reference in New Issue
Block a user