Migrate to forgejo
All checks were successful
Check & deploy / build (push) Successful in 52s

This commit is contained in:
Andras Schmelczer 2026-06-02 20:16:18 +01:00
parent 6a93206f4e
commit 4dbc604387
5 changed files with 24670 additions and 20 deletions

View file

@ -0,0 +1,41 @@
name: Check & deploy
on:
push:
branches: ['main']
pull_request:
branches: ['main']
workflow_dispatch:
concurrency:
group: 'pages'
cancel-in-progress: false
jobs:
build:
runs-on: docker
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
# webpack 4 needs the legacy OpenSSL provider on Node 17+
run: npm run build
env:
NODE_OPTIONS: --openssl-legacy-provider
- name: Copy build to host pages mount
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: |
apt update && apt install -y rsync
rsync -a --delete --mkpath dist/ /pages/sdf2d
rsync -a --delete --mkpath dist/ /pages/sdf-2d

View file

@ -1,19 +0,0 @@
name: Deploy to Firebase Hosting
'on':
push:
branches:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_SCHMELCZER_DEV }}'
channelId: live
projectId: schmelczer-dev
env:
FIREBASE_CLI_PREVIEWS: hostingchannels

1
.gitignore vendored
View file

@ -1,5 +1,4 @@
dist
node_modules
package-lock.json
.vscode
.firebase

1
.nvmrc Normal file
View file

@ -0,0 +1 @@
22.13.0

24628
package-lock.json generated Normal file

File diff suppressed because it is too large Load diff