Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Commit

Permalink
Update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
luyanci committed Jun 10, 2024
1 parent 1dd8504 commit b781d2d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches: master
workflow_dispatch:
workflow_call:

jobs:
build:
Expand All @@ -27,11 +28,13 @@ jobs:
run: pip install -r requirements.txt
- name: Build
run: pyinstaller -F --hidden-import=PIL._tkinter_finder --additional-hooks-dir=hooks main.py -n vcbot-bili -i .res/icon.ico
- name: pack
run: 7z a -tzip build-${{runner.os}}.zip ./dist
- name: Upload
uses: actions/upload-artifact@v4
with:
name: build-${{matrix.os}}
path: ./dist/*
path: ./build-${{runner.os}}.zip
build-windows:
if: false
runs-on: windows-latest
Expand All @@ -45,8 +48,6 @@ jobs:
run: pip install -r requirements.txt
- name: Build
run: pyinstaller -F -w --hidden-import=PIL._tkinter_finder --additional-hooks-dir=hooks main.py -n vcbot-bili -i .res\icon.ico
- name: pack
run: 7z a -tzip build-${{runner.os}}.zip ./dist
- name: Upload
uses: actions/upload-artifact@v4
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
name: Release

on:
workflow_dispatch:
push:
tags: v*

jobs:
build:
uses: ./.github/workflows/main.yml
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: download
Expand Down

0 comments on commit b781d2d

Please sign in to comment.