diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 40dc37e..22f82c8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: