Bump alembic from 1.17.2 to 1.18.0 in /server #427
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 DigiScript Applications | |
| on: | |
| push: | |
| tags: [ 'v*' ] | |
| pull_request: | |
| branches: [ main, dev ] | |
| jobs: | |
| build-front-end: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '24' | |
| cache: 'npm' | |
| cache-dependency-path: 'client/package-lock.json' | |
| - name: Install dependencies | |
| run: | | |
| cd client | |
| npm ci | |
| - name: Build frontend | |
| run: | | |
| cd client | |
| npm run build | |
| - name: Upload frontend build | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: frontend-build | |
| path: server/static/ | |
| build-executables: | |
| needs: build-front-end | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| include: | |
| - os: ubuntu-latest | |
| platform: linux | |
| artifact_extension: "" | |
| - os: windows-latest | |
| platform: windows | |
| artifact_extension: ".exe" | |
| - os: macos-latest | |
| platform: macos | |
| artifact_extension: "" | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.13' | |
| cache: 'pip' | |
| cache-dependency-path: 'server/requirements.txt' | |
| - name: Download frontend build | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: frontend-build | |
| path: server/static | |
| - name: Install Python Packages | |
| run: python -m pip install -r server/requirements.txt | |
| - name: Build DigiScript with build script | |
| run: python dist/build_digiscript.py --onefile --name DigiScript-${{ matrix.platform }} | |
| shell: bash | |
| - name: Create ZIP package | |
| run: | | |
| mkdir -p artifacts | |
| if [ "${{ matrix.os }}" = "windows-latest" ]; then | |
| cp dist/output/${{ matrix.platform }}/DigiScript-${{ matrix.platform }}${{ matrix.artifact_extension }} artifacts/ | |
| cd artifacts | |
| powershell Compress-Archive -Path DigiScript-${{ matrix.platform }}${{ matrix.artifact_extension }} -DestinationPath DigiScript-${{ matrix.platform }}.zip | |
| else | |
| cp dist/output/${{ matrix.platform }}/DigiScript-${{ matrix.platform }}${{ matrix.artifact_extension }} artifacts/ | |
| cd artifacts | |
| chmod +x DigiScript-${{ matrix.platform }}${{ matrix.artifact_extension }} | |
| zip DigiScript-${{ matrix.platform }}.zip DigiScript-${{ matrix.platform }}${{ matrix.artifact_extension }} | |
| fi | |
| shell: bash | |
| - name: Upload executable | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: DigiScript-${{ matrix.platform }} | |
| path: artifacts/DigiScript-${{ matrix.platform }}${{ matrix.artifact_extension }} | |
| - name: Upload ZIP package | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: DigiScript-${{ matrix.platform }}-zip | |
| path: artifacts/DigiScript-${{ matrix.platform }}.zip | |
| create-release: | |
| needs: build-executables | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Download all artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| path: artifacts | |
| - name: Create release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| files: | | |
| artifacts/DigiScript-linux-zip/DigiScript-linux.zip | |
| artifacts/DigiScript-windows-zip/DigiScript-windows.zip | |
| artifacts/DigiScript-macos-zip/DigiScript-macos.zip | |
| draft: false | |
| prerelease: false | |
| generate_release_notes: true | |
| token: ${{ secrets.GITHUB_TOKEN }} |