35 lines
771 B
YAML
35 lines
771 B
YAML
name: Deploy to Shuttle
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '22'
|
|
|
|
- name: Cache Node.js modules
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: ~/.npm
|
|
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
restore-keys: |
|
|
${{ runner.OS }}-node-
|
|
|
|
- name: Build Frontend
|
|
run: |
|
|
cd frontend
|
|
npm ci
|
|
ng build
|
|
|
|
- uses: shuttle-hq/deploy-action@main
|
|
with:
|
|
deploy-key: ${{ secrets.SHUTTLE_API_KEY }}
|
|
project-id: proj_01JNH9KPMRS34FKC2NHWQ5YNNB |