Adds AI Monster Generation Feature #859
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
| # This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node | |
| # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
| name: Deploy Staging | |
| on: | |
| push: | |
| branches: [develop] | |
| pull_request: | |
| branches: [develop] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js 24 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "24" | |
| cache: "npm" | |
| - run: npm i -g @quasar/cli@latest | |
| - run: npm ci | |
| - name: Create public env file | |
| run: | | |
| cat << EOF >> .env.production.local | |
| ${{ secrets.STAGING_ENV_FILE }} | |
| EOF | |
| # - # Fill firebaseServiceAccountKey.json with an empty object | |
| # name: Create firebaseServiceAccountKey.json | |
| # run: | | |
| # echo "{}" > firebaseServiceAccountKey.json | |
| - run: quasar build -m ssr -d --if-present | |
| - # Login against GitHub Container Registry | |
| name: Log in to GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - # Build and push Docker image | |
| name: Build and push | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| push: true | |
| tags: ghcr.io/harmlesskey/harmlesskey_staging |