mirror of
https://github.com/shizand/statapp.git
synced 2024-12-23 20:22:58 +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:
|
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user