Fix deployment #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |