Skip to content

Commit

Permalink
👷 Add CI Build
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao committed Nov 8, 2023
1 parent 971ba29 commit 0b9ff32
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 74 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/release.yml
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
74 changes: 0 additions & 74 deletions appveyor.yml

This file was deleted.

0 comments on commit 0b9ff32

Please sign in to comment.