v1.5.11 latest

This commit is contained in:
lanqian528 2024-10-27 21:16:07 +08:00
parent ebd6ec9a4b
commit 2d2ce1c4ed
2 changed files with 10 additions and 8 deletions

View File

@ -10,6 +10,7 @@ on:
- 'docker-compose-warp.yml'
- 'docs/**'
- '.github/workflows/build_docker_main.yml'
- '.github/workflows/build_docker_dev.yml'
workflow_dispatch:
jobs:
@ -24,8 +25,8 @@ jobs:
id: get_version
run: |
version=$(cat version.txt)
echo "Current version: $version-dev"
echo "::set-output name=version::$version-dev"
echo "Current version: v$version-dev"
echo "::set-output name=version::v$version-dev"
- name: Commit and push version tag
env:
@ -34,8 +35,8 @@ jobs:
version=${{ steps.get_version.outputs.version }}
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git tag "v$version"
git push https://x-access-token:${GHCR_PAT}@github.com/lanqian528/chat2api.git "v$version"
git tag "$version"
git push https://x-access-token:${GHCR_PAT}@github.com/lanqian528/chat2api.git "$version"
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

View File

@ -9,6 +9,7 @@ on:
- 'docker-compose.yml'
- 'docker-compose-warp.yml'
- 'docs/**'
- '.github/workflows/build_docker_main.yml'
- '.github/workflows/build_docker_dev.yml'
workflow_dispatch:
@ -24,8 +25,8 @@ jobs:
id: get_version
run: |
version=$(cat version.txt)
echo "Current version: $version"
echo "::set-output name=version::$version"
echo "Current version: v$version"
echo "::set-output name=version::v$version"
- name: Commit and push version tag
env:
@ -34,8 +35,8 @@ jobs:
version=${{ steps.get_version.outputs.version }}
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git tag "v$version"
git push https://x-access-token:${GHCR_PAT}@github.com/lanqian528/chat2api.git "v$version"
git tag "$version"
git push https://x-access-token:${GHCR_PAT}@github.com/lanqian528/chat2api.git "$version"
- name: Set up QEMU
uses: docker/setup-qemu-action@v3