Skip to content

Build and Release EXE #10

Build and Release EXE

Build and Release EXE #10

Workflow file for this run

name: Build and Release EXE
on:
push:
branches:
- dev
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create tag
uses: actions/github-script@v5
with:
script: |

Check failure on line 20 in .github/workflows/windows.yml

View workflow run for this annotation

GitHub Actions / Build and Release EXE

Invalid workflow file

The workflow is not valid. .github/workflows/windows.yml (Line: 20, Col: 19): Unexpected symbol: 'steps'. Located at position 31 within expression: format('{0}/{1}','refs/tags/' steps.date.outputs.date
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: ${{ format('{0}/{1}','refs/tags/' steps.date.outputs.date }},
sha: context.sha
})
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.12' # 替换为你的 Python 版本
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pyinstaller
- name: Build EXE
run: |
pyinstaller main.spec
- name: Zip Files
uses: vimtor/[email protected]
with:
files: dist/main/*
dest: dist/blivechat.zip
- name: Upload EXE to GitHub Release
uses: softprops/action-gh-release@v1
with:
files: dist/blivechat.zip # 假设生成的EXE文件在dist目录下
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}