-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
58 additions
and
74 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- '**.md' | ||
- '**.json' | ||
tags: | ||
- '**' | ||
workflow_dispatch: ~ | ||
|
||
jobs: | ||
build-win: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Create and start virtual environment | ||
shell: bash | ||
run: | | ||
python3 -m venv venv | ||
echo source venv/Scripts/activate > activate_env.sh | ||
- name: Install dependencies | ||
shell: bash | ||
run: | | ||
source activate_env.sh | ||
python -m pip install --upgrade pip | ||
python -m pip install -r requirements.txt | ||
- name: Build | ||
shell: bash | ||
run: | | ||
source activate_env.sh | ||
pyinstaller -F -w main.py --name GramBotMetadataEditor | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: GramBotMetadataEditor | ||
path: dist/GramBotMetadataEditor.exe | ||
|
||
- name: Upload binaries to release | ||
uses: svenstaro/upload-release-action@v2 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: dist/GramBotMetadataEditor.exe | ||
asset_name: GramBotMetadataEditor.exe | ||
tag: ${{ github.ref }} | ||
overwrite: true |
This file was deleted.
Oops, something went wrong.