Update version #44
Workflow file for this run
This file contains hidden or 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 mac release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| release: | |
| types: [published] | |
| permissions: | |
| contents: write | |
| jobs: | |
| deploy: | |
| runs-on: macos-12 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: '3.7' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install -r requirements_build_addon.txt | |
| pip install Pillow | |
| - name: Build package | |
| run: pyinstaller -D run_gui.py -i "pdf.ico" --exclude config.ini --distpath . -n "pdfdir" --noconsole | |
| - name: Build debug package | |
| run: pyinstaller -D run_gui.py -i "pdf.ico" --exclude config.ini --distpath . -n "pdfdir_debug" | |
| - name: Prepare file | |
| run: | | |
| chmod +x pdfdir.app | |
| zip -r pdfdir_mac.zip pdfdir.app | |
| - name: Prepare debug file | |
| run: | | |
| chmod +x pdfdir_debug | |
| zip -r pdfdir_debug_mac.zip pdfdir_debug | |
| - name: Upload package | |
| uses: softprops/action-gh-release@v1 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| files: | | |
| pdfdir_mac.zip | |
| pdfdir_debug_mac.zip |