Merge branch 'main' into fix/white-screen #25
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and publish release | |
on: | |
workflow_dispatch: | |
push: | |
# Sequence of patterns matched against refs/tags | |
tags: | |
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | |
permissions: write-all | |
jobs: | |
build-on-windows: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
python-version: [3.9] | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Set up Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies core | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r .\packages\core\requirements.txt | |
- name: Install dependencies app | |
run: | | |
npm run install:app | |
- name: Build App | |
run: | | |
npm run build:app | |
- name: Build with pyinstaller | |
run: | | |
pyinstaller config/windows.spec | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: app_windows | |
path: .\dist\Epic7 Bot.exe | |
create-release: | |
runs-on: ubuntu-latest | |
needs: [build-on-windows] | |
steps: | |
- uses: actions/download-artifact@v2 | |
with: | |
path: ./ | |
- name: Create github release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: ${{ github.ref }} | |
draft: false | |
prerelease: false | |
body: | | |
Please refer to [CHANGELOG.md](https://github.com/brunocordioli072/epic7_bot/blob/${{ github.ref_name }}/CHANGELOG.md) for details. | |
- name: Upload windows artifact to github release | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./app_windows/Epic7 Bot.exe | |
asset_name: Epic7 Bot.exe | |
asset_content_type: application |