chore: add deployment workflow for Shuttle in deploy.yml
This commit is contained in:
parent
44d052ca48
commit
9ffaaca568
34
.github/workflows/deploy.yml
vendored
Normal file
34
.github/workflows/deploy.yml
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
name: Deploy to Shuttle
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
|
||||
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@v0.4.0
|
||||
with:
|
||||
deploy-key: ${{ secrets.SHUTTLE_API_KEY }}
|
Loading…
x
Reference in New Issue
Block a user