<fix> fix openai translate error #90
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: Package Application with Pyinstaller | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Package Application | |
uses: JackMcKew/pyinstaller-action-windows@python3-10-pyinstaller-5-3 | |
with: | |
path: src | |
pypi_url: https://pypi.org | |
pypi_index_url: https://pypi.org/simple | |
spec: "main.spec" | |
- run: cp src/google.source.rst src/dist/windows/google.source.rst | |
- run: cp src/google.target.rst src/dist/windows/google.target.rst | |
- run: cp src/deepl.source.rst src/dist/windows/deepl.source.rst | |
- run: cp src/deepl.target.rst src/dist/windows/deepl.target.rst | |
- run: cp src/youdao.source.rst src/dist/windows/youdao.source.rst | |
- run: cp src/youdao.target.rst src/dist/windows/youdao.target.rst | |
- run: cp src/youdao.source.rst src/dist/windows/openai.source.rst | |
- run: cp src/youdao.target.rst src/dist/windows/openai.target.rst | |
- run: cp src/main.ico src/dist/windows/main.ico | |
- run: cp src/cacert.pem src/dist/windows/cacert.pem | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: Action-Build | |
path: src/dist/windows |