ci: update release.yml

This commit is contained in:
Maxim Slipenko 2023-09-26 21:36:34 +03:00 committed by GitHub
parent 3abbdfd531
commit 31f0759726
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: