mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-04-13 13:29:44 +08:00
change: optimize
This commit is contained in:
31
.github/workflows/build.yml
vendored
31
.github/workflows/build.yml
vendored
@@ -30,25 +30,6 @@ jobs:
|
||||
mkdir -p config
|
||||
pytest
|
||||
|
||||
create-tag:
|
||||
runs-on: ubuntu-latest
|
||||
if: >
|
||||
github.event.pull_request.merged == true &&
|
||||
github.event.pull_request.base.ref == 'main'
|
||||
needs: [test]
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
-
|
||||
name: Create tag
|
||||
run: |
|
||||
git checkout main
|
||||
git config --global user.name "GitHub Action"
|
||||
git config --global user.email "
|
||||
git tag ${{ github.event.pull_request.title }}
|
||||
git push --tags
|
||||
|
||||
build-webui:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [test]
|
||||
@@ -91,6 +72,16 @@ jobs:
|
||||
working-directory: ./backend/src
|
||||
run: |
|
||||
echo "VERSION = '$GITHUB_REF_NAME'" > module/__version__.py
|
||||
|
||||
- name: Create Tag
|
||||
if: ${{ github.pull_request.merged == true }}
|
||||
id: create-tag
|
||||
run: |
|
||||
git config --local user.email "
|
||||
git config --local user.name "github-actions"
|
||||
git tag -a ${{ github.event.pull_request.title }} -m ${{ github.event.pull_request.body }}
|
||||
git push origin ${{ github.event.pull_request.title }}
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
@@ -156,7 +147,7 @@ jobs:
|
||||
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [ create-tag, build-docker ]
|
||||
needs: [ build-docker ]
|
||||
steps:
|
||||
|
||||
- name: Checkout code
|
||||
|
||||
Reference in New Issue
Block a user