Skip to content

Commit

Permalink
ci: add reelase workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
daxartio committed May 13, 2024
1 parent 2a517e2 commit bf747fd
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit bf747fd

Please sign in to comment.