Fix the crash when list item is empty #51
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: "ci" | |
env: | |
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | |
on: | |
push: | |
branches: | |
- "main" | |
- "develop" | |
jobs: | |
pre-release: | |
name: "Pre Release" | |
runs-on: "windows-2019" # Windows 10, VS 2019 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/build | |
- name: Detecting version | |
id: vars | |
shell: bash | |
run: | | |
echo "version_tag=$(python3 ./.github/workflows/printversion.py)" >> $GITHUB_OUTPUT | |
- name: Print version | |
run: echo "${{ steps.vars.outputs.version_tag }}" | |
- name: install pyinstaller | |
run: pip install pyinstaller | |
- name: create versionfile | |
run: python3 ./versionfile_gen.py | |
- name: run pyinstaller | |
run: | | |
pyinstaller --collect-data preppipe --icon=preppipe.ico --version-file=versionfile.txt -n preppipe_cli -D preppipe_cli.py | |
cd dist/preppipe_cli && 7z.exe a -t7z -mx=9 ../preppipe_cli-windows-x64.7z * | |
- uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: "latest-${{ env.BRANCH_NAME }}" | |
prerelease: true | |
title: "${{ steps.vars.outputs.version_tag }} 最新版本 (Latest build) - ${{ env.BRANCH_NAME }}" | |
files: | | |
dist/preppipe_cli-windows-x64.7z | |
dist/*.whl | |
- name: Repository Dispatch | |
if: github.ref == 'refs/heads/main' | |
uses: peter-evans/repository-dispatch@v2 | |
with: | |
token: ${{ secrets.PREPPIPE_ALL_IN_ONE_PAT }} | |
repository: PrepPipe/preppipe-latest-all-in-one | |
event-type: update-request | |
#sync2gitee: | |
# name: "Sync to Gitee" | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Organization mirror | |
# uses: Yikun/hub-mirror-action@master | |
# with: | |
# src: github/preppipe | |
# dst: gitee/preppipe | |
# dst_key: ${{ secrets.GITEE_PRIVATE_KEY }} | |
# dst_token: ${{ secrets.GITEE_TOKEN }} | |
# account_type: org | |
# force_update: true |