Merge pull request #418 from arabcoders/dev
Some checks failed
native-build / build (amd64, ubuntu-latest) (push) Has been cancelled
native-build / build (amd64, windows-latest) (push) Has been cancelled
native-build / build (arm64, macos-latest) (push) Has been cancelled
native-build / build (arm64, ubuntu-latest) (push) Has been cancelled
native-build / build (arm64, windows-latest) (push) Has been cancelled
Some checks failed
native-build / build (amd64, ubuntu-latest) (push) Has been cancelled
native-build / build (amd64, windows-latest) (push) Has been cancelled
native-build / build (arm64, macos-latest) (push) Has been cancelled
native-build / build (arm64, ubuntu-latest) (push) Has been cancelled
native-build / build (arm64, windows-latest) (push) Has been cancelled
fix version tagging
This commit is contained in:
commit
0de61566fb
4 changed files with 28 additions and 27 deletions
4
.github/workflows/build-pr.yml
vendored
4
.github/workflows/build-pr.yml
vendored
|
|
@ -1,4 +1,4 @@
|
||||||
name: Test PR
|
name: build-pr
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
@ -14,7 +14,7 @@ on:
|
||||||
env:
|
env:
|
||||||
PNPM_VERSION: 10
|
PNPM_VERSION: 10
|
||||||
NODE_VERSION: 20
|
NODE_VERSION: 20
|
||||||
PYTHON_VERSION: "3.11"
|
PYTHON_VERSION: "3.13"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
|
|
|
||||||
2
.github/workflows/delete-builds.yml
vendored
2
.github/workflows/delete-builds.yml
vendored
|
|
@ -1,4 +1,4 @@
|
||||||
name: delete builds
|
name: delete-builds
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
|
||||||
47
.github/workflows/main.yml
vendored
47
.github/workflows/main.yml
vendored
|
|
@ -1,4 +1,4 @@
|
||||||
name: Build Docker Containers
|
name: build-docker-containers
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
@ -26,7 +26,7 @@ env:
|
||||||
GHCR_SLUG: ghcr.io/arabcoders/ytptube
|
GHCR_SLUG: ghcr.io/arabcoders/ytptube
|
||||||
PNPM_VERSION: 10
|
PNPM_VERSION: 10
|
||||||
NODE_VERSION: 20
|
NODE_VERSION: 20
|
||||||
PYTHON_VERSION: "3.11"
|
PYTHON_VERSION: "3.13"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
|
|
@ -107,7 +107,6 @@ jobs:
|
||||||
working-directory: ui
|
working-directory: ui
|
||||||
run: pnpm run generate
|
run: pnpm run generate
|
||||||
|
|
||||||
# Generate changelog and version files
|
|
||||||
- name: Install GitPython
|
- name: Install GitPython
|
||||||
run: pip install gitpython
|
run: pip install gitpython
|
||||||
|
|
||||||
|
|
@ -115,26 +114,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
python3 .github/scripts/generate_changelog.py -p . -f ./ui/exported/CHANGELOG.json
|
python3 .github/scripts/generate_changelog.py -p . -f ./ui/exported/CHANGELOG.json
|
||||||
|
|
||||||
- name: Update app/library/version.py
|
|
||||||
run: |
|
|
||||||
VERSION="${GITHUB_REF##*/}"
|
|
||||||
SHA=$(git rev-parse HEAD)
|
|
||||||
DATE=$(date -u +"%Y%m%d")
|
|
||||||
BRANCH=$(echo "${GITHUB_REF#refs/heads/}" | sed 's/\//-/g')
|
|
||||||
|
|
||||||
echo "APP_VERSION=${VERSION}" >> "$GITHUB_ENV"
|
|
||||||
echo "APP_SHA=${SHA}" >> "$GITHUB_ENV"
|
|
||||||
echo "APP_DATE=${DATE}" >> "$GITHUB_ENV"
|
|
||||||
echo "APP_BRANCH=${BRANCH}" >> "$GITHUB_ENV"
|
|
||||||
|
|
||||||
sed -i \
|
|
||||||
-e "s/^APP_VERSION = \".*\"/APP_VERSION = \"${VERSION}\"/" \
|
|
||||||
-e "s/^APP_COMMIT_SHA = \".*\"/APP_COMMIT_SHA = \"${SHA}\"/" \
|
|
||||||
-e "s/^APP_BUILD_DATE = \".*\"/APP_BUILD_DATE = \"${DATE}\"/" \
|
|
||||||
-e "s/^APP_BRANCH = \".*\"/APP_BRANCH = \"${BRANCH}\"/" \
|
|
||||||
app/library/version.py
|
|
||||||
|
|
||||||
# Upload built frontend as artifact for docker builds
|
|
||||||
- name: Upload frontend build
|
- name: Upload frontend build
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|
@ -170,6 +149,28 @@ jobs:
|
||||||
name: frontend-build
|
name: frontend-build
|
||||||
path: ui/exported/
|
path: ui/exported/
|
||||||
|
|
||||||
|
- name: Update app/library/version.py
|
||||||
|
run: |
|
||||||
|
VERSION="${GITHUB_REF##*/}"
|
||||||
|
SHA=$(git rev-parse HEAD)
|
||||||
|
DATE=$(date -u +"%Y%m%d")
|
||||||
|
BRANCH=$(echo "${GITHUB_REF#refs/heads/}" | sed 's/\//-/g')
|
||||||
|
|
||||||
|
echo "APP_VERSION=${VERSION}" >> "$GITHUB_ENV"
|
||||||
|
echo "APP_SHA=${SHA}" >> "$GITHUB_ENV"
|
||||||
|
echo "APP_DATE=${DATE}" >> "$GITHUB_ENV"
|
||||||
|
echo "APP_BRANCH=${BRANCH}" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
|
sed -i \
|
||||||
|
-e "s/^APP_VERSION = \".*\"/APP_VERSION = \"${VERSION}\"/" \
|
||||||
|
-e "s/^APP_COMMIT_SHA = \".*\"/APP_COMMIT_SHA = \"${SHA}\"/" \
|
||||||
|
-e "s/^APP_BUILD_DATE = \".*\"/APP_BUILD_DATE = \"${DATE}\"/" \
|
||||||
|
-e "s/^APP_BRANCH = \".*\"/APP_BRANCH = \"${BRANCH}\"/" \
|
||||||
|
app/library/version.py
|
||||||
|
|
||||||
|
echo "Updated version info:"
|
||||||
|
cat app/library/version.py
|
||||||
|
|
||||||
- name: Docker meta
|
- name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
|
|
|
||||||
2
.github/workflows/native-build.yml
vendored
2
.github/workflows/native-build.yml
vendored
|
|
@ -1,4 +1,4 @@
|
||||||
name: Build Native wrappers
|
name: native-build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue