This repository has been archived by the owner on Jul 15, 2024. It is now read-only.
Build wxbot #5
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 wxbot | |
on: | |
workflow_dispatch: | |
inputs: | |
tag: | |
description: "The tag version you want to build" | |
# push: | |
# branches: | |
# - main | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
- name: Set up Python | |
uses: actions/[email protected] | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Build wxbot | |
run: pyinstaller wxbot.spec | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
name: ${{ github.event.inputs.tag }} | |
files: | | |
dist/wxbot.exe | |
tag_name: ${{ github.event.inputs.tag }} | |