Workflow file for this run
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: Release PyPI & Build a package by PyInstaller | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
if: startsWith(github.event.head_commit.message, 'Release') | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: install dependencies | |
run: | | |
python3.11 -m pip install WebtoonScraper poetry | |
- name: Build and release the package to PyPI | |
run: | | |
export PYPI_TOKEN="${{secrets.PYPI_TOKEN}}" | |
python3.11 build.py | |
linux-pyinstaller-build: | |
runs-on: ubuntu-latest | |
if: startsWith(github.event.head_commit.message, 'Release') || startsWith(github.event.head_commit.message, 'Build') | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: install dependencies | |
run: | | |
python3.11 -m pip install pyinstaller WebtoonScraper | |
- name: Build PyInstaller | |
run: | | |
pyinstaller -c pyinstaller.py | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: linux-portable | |
path: dist/pyinstaller | |
windows-pyinstaller-build: | |
runs-on: windows-latest | |
if: startsWith(github.event.head_commit.message, 'Release') || startsWith(github.event.head_commit.message, 'Build') | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: install dependencies | |
run: | | |
py -3.11 -m pip install pyinstaller WebtoonScraper | |
- name: Build PyInstaller | |
run: | | |
pyinstaller -c pyinstaller.py | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: windows-portable | |
path: dist/pyinstaller | |
macos-pyinstaller-build: | |
runs-on: macos-latest | |
if: startsWith(github.event.head_commit.message, 'Release') || startsWith(github.event.head_commit.message, 'Build') | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: install dependencies | |
run: | | |
python3.11 -m pip install pyinstaller WebtoonScraper | |
- name: Build PyInstaller | |
run: | | |
pyinstaller -c pyinstaller.py | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: macos-portable | |
path: dist/pyinstaller |