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: strategy:
matrix: matrix:
os: [ubuntu-latest, windows-latest] os: [ubuntu-latest, windows-latest]
defaults:
run:
shell: bash
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Установка python - name: Установка python
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
python-version: 3.9 python-version: 3.9
- name: Установка poetry - name: Установка poetry
uses: abatilo/actions-poetry@v2 uses: snok/install-poetry@v1
with: with:
poetry-version: 1.6.1 version: 1.6.1
- name: Настройка virtualenv virtualenvs-create: true
run: | virtualenvs-in-project: true
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- uses: actions/cache@v3 - uses: actions/cache@v3
with: with:
path: ./.venv path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }} key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Установка зависимостей - name: Установка зависимостей
run: poetry install run: poetry install
- name: Сборка - name: Сборка
run: poetry run pyinstaller ./statapp.spec run: poetry run pyinstaller statapp.spec
- name: Загрузка артефактов - name: Загрузка артефактов
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with: