头像框改动, gameinfo页kda显示 #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Seraphine | |
on: | |
workflow_dispatch: | |
jobs: | |
build-seraphine: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
cache: 'pip' | |
- name: Pack Seraphine | |
run: | | |
pip install -r requirements.txt | |
pip install pyinstaller | |
.\make.ps1 | |
echo "SUCCESS=true" >> $GITHUB_ENV | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
if: ${{ env.SUCCESS }} == 'true' | |
with: | |
name: Seraphine | |
path: .\Seraphine.zip | |
release: | |
needs: build-seraphine | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup environment variables | |
run: | | |
export VERSION=`python -c "from app.common.config import VERSION; print(VERSION)"` | |
echo "VERSION=v$VERSION" >> $GITHUB_ENV | |
- name: Download artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: Seraphine | |
path: ./ | |
- name: Push to release | |
uses: ncipollo/release-action@v1 | |
with: | |
name: Seraphine ${{ env.VERSION }} | |
tag: ${{ env.VERSION }} | |
omitBodyDuringUpdate: true | |
token: ${{ secrets.GITHUB_TOKEN }} | |
allowUpdates: false | |
artifacts: Seraphine.zip |