Skip to content

Commit

Permalink
Add CI/CD pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: Andreia Ocănoaia <[email protected]>
  • Loading branch information
andreia-oca committed Jun 5, 2024
1 parent b37a95a commit c6b7f52
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
- name: Cache npm binaries
id: cache-npm-binaries
uses: actions/cache@v4
with:
path: /opt/hostedtoolcache/node/20.12.2/x64/
key: ${{ runner.os }}-npm-binaries
restore-keys: |
${{ runner.os }}-npm-binaries
- uses: Genez-io/genezio-github-action@v1
if: steps.cache-npm-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

0 comments on commit c6b7f52

Please sign in to comment.