mirror of
https://github.com/darkzoul5/YoutubePlaylistSync.git
synced 2026-11-05 07:55:12 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1d74ec0453 | ||
|
|
1f18b8700c | ||
|
|
1c0ccde877 |
No files matched your search
@@ -24,49 +24,6 @@ permissions:
|
|||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tag:
|
|
||||||
name: Create tag
|
|
||||||
needs: test
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v7
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Validate input tag
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
TAG="${{ inputs.tag }}"
|
|
||||||
if [[ -z "$TAG" ]]; then
|
|
||||||
echo "tag is required" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
if [[ "$TAG" != v* ]]; then
|
|
||||||
echo "tag must start with 'v' (got: $TAG)" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Create/push tag
|
|
||||||
shell: bash
|
|
||||||
env:
|
|
||||||
TAG: ${{ inputs.tag }}
|
|
||||||
FORCE: ${{ inputs.force_tag }}
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
if git rev-parse -q --verify "refs/tags/${TAG}" >/dev/null; then
|
|
||||||
if [[ "${FORCE}" != "true" ]]; then
|
|
||||||
echo "Tag ${TAG} already exists. Re-run with force_tag=true to recreate." >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
git tag -d "${TAG}" || true
|
|
||||||
git push origin ":refs/tags/${TAG}" || true
|
|
||||||
fi
|
|
||||||
|
|
||||||
git tag "${TAG}" "${GITHUB_SHA}"
|
|
||||||
git push origin "${TAG}"
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
name: Test
|
name: Test
|
||||||
uses: ./.github/workflows/test.yml
|
uses: ./.github/workflows/test.yml
|
||||||
@@ -75,7 +32,7 @@ jobs:
|
|||||||
|
|
||||||
build:
|
build:
|
||||||
name: Build packages
|
name: Build packages
|
||||||
needs: tag
|
needs: test
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@@ -266,9 +223,52 @@ jobs:
|
|||||||
ytpl-sync-*.zip
|
ytpl-sync-*.zip
|
||||||
ytpl-sync-*.tar.gz
|
ytpl-sync-*.tar.gz
|
||||||
|
|
||||||
|
tag:
|
||||||
|
name: Create tag
|
||||||
|
needs: build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v7
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Validate input tag
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
TAG="${{ inputs.tag }}"
|
||||||
|
if [[ -z "$TAG" ]]; then
|
||||||
|
echo "tag is required" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
if [[ "$TAG" != v* ]]; then
|
||||||
|
echo "tag must start with 'v' (got: $TAG)" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Create/push tag
|
||||||
|
shell: bash
|
||||||
|
env:
|
||||||
|
TAG: ${{ inputs.tag }}
|
||||||
|
FORCE: ${{ inputs.force_tag }}
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
if git rev-parse -q --verify "refs/tags/${TAG}" >/dev/null; then
|
||||||
|
if [[ "${FORCE}" != "true" ]]; then
|
||||||
|
echo "Tag ${TAG} already exists. Re-run with force_tag=true to recreate." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
git tag -d "${TAG}" || true
|
||||||
|
git push origin ":refs/tags/${TAG}" || true
|
||||||
|
fi
|
||||||
|
|
||||||
|
git tag "${TAG}" "${GITHUB_SHA}"
|
||||||
|
git push origin "${TAG}"
|
||||||
|
|
||||||
release:
|
release:
|
||||||
name: Create Release
|
name: Create Release
|
||||||
needs: build
|
needs: tag
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@v7
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ license = { file = "LICENSE" }
|
|||||||
keywords = ["youtube", "yt-dlp", "playlist", "sync"]
|
keywords = ["youtube", "yt-dlp", "playlist", "sync"]
|
||||||
requires-python = ">=3.10"
|
requires-python = ">=3.10"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"yt-dlp>=2026.8.19",
|
"yt-dlp>=2026.10.26",
|
||||||
"PySide6_Essentials>=6.11.1",
|
"PySide6_Essentials>=6.11.1",
|
||||||
]
|
]
|
||||||
[project.optional-dependencies]
|
[project.optional-dependencies]
|
||||||
|
|||||||
Reference in new issue
Block a user