Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
QSlotus authored Jul 12, 2024
1 parent 1c2a8a4 commit 3446a23
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build Actions

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.12'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pyinstaller
- name: Build executable
run: pyinstaller -F gacha.py -i icon.ico

- name: Create ZIP file
run: |
cp banners.json dist
cd dist
7z a ../gacha.zip gacha.exe banners.json
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: gacha
path: gacha.zip

0 comments on commit 3446a23

Please # to comment.