Skip to content

Commit

Permalink
Add release workflow
Browse files Browse the repository at this point in the history
This workflow will attach a packaged exe to every release.
  • Loading branch information
lavirlifiliol committed Mar 28, 2021
1 parent f17cc2d commit e4728cd
Showing 1 changed file with 34 additions and 0 deletions.
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: Package for windows

on:
release:
types: [created]
workflow_dispatch:

jobs:
generate:
strategy:
matrix:
platform: [windows-latest]
runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v2

- name: setup python
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Run build.py
run: |
python -m pip install poetry
poetry install
poetry run python build.py
- name: Upload the artifacts
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: dist/*

0 comments on commit e4728cd

Please sign in to comment.