-
Notifications
You must be signed in to change notification settings - Fork 139
53 lines (50 loc) · 1.41 KB
/
build_seraphine.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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