CI build fired off at 4130c1ff3b201df54f92bce4cc895fcf8ab68dc4 #1
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: Build via CI | |
run-name: CI build fired off at ${{ github.sha }} | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
os: ["windows-latest", "macos-latest", "ubuntu-latest"] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Build via PyInstaller | |
shell: bash | |
run: | | |
pip install pyinstaller==6.11.1 | |
pyinstaller --onefile --clean --name simple-site-localhoster-${{ matrix.os }} main.py | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: simple-site-localhoster-${{ matrix.os }}-${{ github.sha }} | |
path: dist/simple-site-localhoster-${{ matrix.os }} |