mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Dedup pyinstaller actions.
This commit is contained in:
parent
83af032bee
commit
9ab1dbab78
22
.github/actions/build-app/action.yaml
vendored
Normal file
22
.github/actions/build-app/action.yaml
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
name: Build Liberation package
|
||||||
|
description: Assembles the full Liberation application.
|
||||||
|
runs:
|
||||||
|
using: composite
|
||||||
|
steps:
|
||||||
|
- name: Build client
|
||||||
|
shell: powershell
|
||||||
|
run: |
|
||||||
|
cd client
|
||||||
|
npm run build
|
||||||
|
|
||||||
|
- name: Build binaries
|
||||||
|
shell: powershell
|
||||||
|
run: |
|
||||||
|
./venv/scripts/activate
|
||||||
|
$env:PYTHONPATH=".;./pydcs"
|
||||||
|
pyinstaller pyinstaller.spec
|
||||||
|
|
||||||
|
- name: Install changelog
|
||||||
|
shell: powershell
|
||||||
|
run: |
|
||||||
|
Copy-Item .\changelog.md .\dist
|
||||||
10
.github/actions/build-front-end/action.yaml
vendored
10
.github/actions/build-front-end/action.yaml
vendored
@ -1,10 +0,0 @@
|
|||||||
name: Front-end build
|
|
||||||
description: Builds the Liberation front-end.
|
|
||||||
runs:
|
|
||||||
using: composite
|
|
||||||
steps:
|
|
||||||
- name: Build client
|
|
||||||
shell: powershell
|
|
||||||
run: |
|
|
||||||
cd client
|
|
||||||
npm run build
|
|
||||||
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
@ -19,18 +19,12 @@ jobs:
|
|||||||
- name: mypy
|
- name: mypy
|
||||||
uses: ./.github/actions/mypy
|
uses: ./.github/actions/mypy
|
||||||
|
|
||||||
- name: update build number
|
- name: Set build number
|
||||||
run: |
|
run: |
|
||||||
[IO.File]::WriteAllLines($pwd.path + "\resources\buildnumber", $env:GITHUB_RUN_NUMBER)
|
[IO.File]::WriteAllLines($pwd.path + "\resources\buildnumber", $env:GITHUB_RUN_NUMBER)
|
||||||
|
|
||||||
- name: Build front-end
|
- name: Build app
|
||||||
uses: ./.github/actions/build-front-end
|
uses: ./.github/actions/build-app
|
||||||
|
|
||||||
- name: Build binaries
|
|
||||||
run: |
|
|
||||||
./venv/scripts/activate
|
|
||||||
$env:PYTHONPATH=".;./pydcs"
|
|
||||||
pyinstaller pyinstaller.spec
|
|
||||||
|
|
||||||
- name: Create archive
|
- name: Create archive
|
||||||
run:
|
run:
|
||||||
|
|||||||
22
.github/workflows/release.yml
vendored
22
.github/workflows/release.yml
vendored
@ -18,27 +18,17 @@ jobs:
|
|||||||
- name: Set up JS environment
|
- name: Set up JS environment
|
||||||
uses: ./.github/actions/setup-liberation-js
|
uses: ./.github/actions/setup-liberation-js
|
||||||
|
|
||||||
- name: Finalize version
|
|
||||||
run: |
|
|
||||||
New-Item -ItemType file resources\final
|
|
||||||
|
|
||||||
- name: mypy
|
- name: mypy
|
||||||
uses: ./.github/actions/mypy
|
uses: ./.github/actions/mypy
|
||||||
|
|
||||||
- name: Build front-end
|
- name: Finalize build
|
||||||
uses: ./.github/actions/build-front-end
|
|
||||||
|
|
||||||
- name: Build binaries
|
|
||||||
run: |
|
run: |
|
||||||
./venv/scripts/activate
|
New-Item -ItemType file resources\final
|
||||||
$env:PYTHONPATH=".;./pydcs"
|
|
||||||
pyinstaller pyinstaller.spec
|
|
||||||
|
|
||||||
- name: Create Installer
|
- name: Build app
|
||||||
env:
|
uses: ./.github/actions/build-app
|
||||||
TAG_NAME: ${{ github.ref }}
|
with:
|
||||||
run: |
|
release: true
|
||||||
Copy-Item .\changelog.md .\dist
|
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user