fix build

This commit is contained in:
jxxghp 2023-08-29 19:44:40 +08:00
parent 99ccbfef22
commit bfca8a52d6
2 changed files with 36 additions and 1 deletions

View File

@ -1,4 +1,4 @@
name: MoviePilot Docker
name: MoviePilot Builder
on:
workflow_dispatch:
push:

35
.github/workflows/release.yml vendored Normal file
View File

@ -0,0 +1,35 @@
name: MoviePilot Release
on:
workflow_dispatch:
push:
branches:
- main
paths:
- version.py
jobs:
build:
runs-on: ubuntu-latest
name: Build Docker Image
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Release Version
id: release_version
run: |
app_version=$(cat version.py |sed -ne "s/APP_VERSION\s=\s'v\(.*\)'/\1/gp")
echo "app_version=$app_version" >> $GITHUB_ENV
-
name: Generate Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.app_version }}
name: ${{ env.app_version }}
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}