Skip to content

Commit

Permalink
Checking bundling workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mbsantiago committed Jan 11, 2024
1 parent 0ff9a85 commit bc5644d
Showing 1 changed file with 81 additions and 0 deletions.
81 changes: 81 additions & 0 deletions .github/workflows/bundle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
on:
push:
branches:
- "releases/**"

jobs:
# build-windows:
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v4
# with:
# python-version: '3.10'
# - run: pip install -r requirements.txt pyinstaller sphinx
# sphinx-autobuild sphinx-book-theme
# - run: sphinx-build -b html 'docs/source' 'docs/build'
# - run: pyinstaller
# --add-data "whombat/migrations;whombat/migrations"
# --add-data "whombat/static;whombat/static"
# --add-data "whombat/templates;whombat/templates"
# --add-data "docs/build;docs/build"
# --hidden-import "logging.config"
# --hidden-import "passlib.handlers.bcrypt"
# --onefile app.py
# - run: mv "dist/app.exe" "dist/whombat-windows-${{ github.ref_name }}.exe"
# - uses: shogo82148/actions-upload-release-asset@v1
# with:
# upload_url: ${{ github.event.release.upload_url }}
# asset_path: 'dist/whombat-windows-${{ github.ref_name }}.exe'

build-ubuntu:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- uses: actions/setup-node@v1
with:
node-version: 21
- run:
make build-frontend
- run:
make build-guide
- run:
make bundle-pyinstaller
- run: |
mkdir dist/
chmod +x "back/dist/whombat"
mv back/dist/whombat "dist/whombat-ubuntu-${{ github.ref_name }}"
- uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: "dist/whombat-ubuntus-${{ github.ref_name }}"


build-macos:
runs-on: macos-11
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- uses: actions/setup-node@v1
with:
node-version: 21
- run:
make build-frontend
- run:
make build-guide
- run:
make bundle-pyinstaller
- run: |
mkdir dist/
chmod +x "back/dist/whombat"
mv back/dist/whombat "dist/whombat-macos-${{ github.ref_name }}"
- uses: shogo82148/actions-upload-release-asset@v1
- uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: "dist/whombat-macos-${{ github.ref_name }}"

0 comments on commit bc5644d

Please sign in to comment.