mirror of
https://github.com/shizand/statapp.git
synced 2024-12-23 12:12:59 +03:00
ci: update release.yml
This commit is contained in:
parent
3abbdfd531
commit
31f0759726
19
.github/workflows/release.yml
vendored
19
.github/workflows/release.yml
vendored
@ -14,28 +14,29 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest]
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Установка python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: 3.9
|
||||
- name: Установка poetry
|
||||
uses: abatilo/actions-poetry@v2
|
||||
uses: snok/install-poetry@v1
|
||||
with:
|
||||
poetry-version: 1.6.1
|
||||
- name: Настройка virtualenv
|
||||
run: |
|
||||
poetry config virtualenvs.create true --local
|
||||
poetry config virtualenvs.in-project true --local
|
||||
version: 1.6.1
|
||||
virtualenvs-create: true
|
||||
virtualenvs-in-project: true
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ./.venv
|
||||
key: venv-${{ hashFiles('poetry.lock') }}
|
||||
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
|
||||
- name: Установка зависимостей
|
||||
run: poetry install
|
||||
- name: Сборка
|
||||
run: poetry run pyinstaller ./statapp.spec
|
||||
run: poetry run pyinstaller statapp.spec
|
||||
- name: Загрузка артефактов
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
|
Loading…
Reference in New Issue
Block a user