-
Notifications
You must be signed in to change notification settings - Fork 2
31 lines (30 loc) · 950 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: deploy
on:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy-backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.14.0
- name: Cache npm binaries
id: cache-node-binaries
uses: actions/cache@v4
with:
path: /opt/hostedtoolcache/node/
key: ${{ runner.os }}-node-binaries
restore-keys: |
${{ runner.os }}-node-binaries
- uses: Genez-io/genezio-github-action@v2
if: steps.cache-node-binaries.outputs.cache-hit != 'true'
- name: Check genezio version - this step is optional
run: genezio --version
- name: Login with genezio - this step is required because we don't cache the genezio auth file
run: genezio login ${{ secrets.GENEZIO_TOKEN }}
- name: Deploy backend
run: genezio deploy --backend