From bf747fdd88f8ab0e12020d4a3f7f93beddb84ddc Mon Sep 17 00:00:00 2001 From: Danil Akhtarov Date: Sun, 1 Oct 2023 21:41:19 +0300 Subject: [PATCH] ci: add reelase workflow --- .github/workflows/check.yml | 2 +- .github/workflows/release.yml | 34 ++++++++++++++++++++++++++++++++++ builder.py | 2 +- 3 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index e285cb9d..573f0a09 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -19,7 +19,7 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-python@v4 with: python-version: '3.8' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..889e0de0 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,34 @@ +name: Release + +on: + push: + branches: [ 'workflows/release' ] + tags: + - "v*" + workflow_dispatch: + +jobs: + release: + name: Release + strategy: + matrix: + include: + - os: windows-2022 + target: x86_64-pc-windows-msvc + runs-on: ${{ matrix.os }} + steps: + - name: Checkout + uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + with: + python-version: '3.8' + cache: 'pip' + - name: Install python dependencies + run: pip install poetry && poetry install -E win + - name: Build + run: poetry run python builder.py build + - name: Upload + uses: actions/upload-artifact@v3 + with: + name: sportorg + path: build/exe.win-amd64-3.8 diff --git a/builder.py b/builder.py index 39a3fb31..92a0875a 100644 --- a/builder.py +++ b/builder.py @@ -10,7 +10,7 @@ include_files = [ config.LOCALE_DIR, - config.TEMPLATE_DIR, + # config.TEMPLATE_DIR, config.IMG_DIR, config.SOUND_DIR, config.base_dir("LICENSE"),