Skip to content

Adds Platformatic Cloud GitHub Actions #4

Adds Platformatic Cloud GitHub Actions

Adds Platformatic Cloud GitHub Actions #4

name: Deploy Platformatic application to the cloud
on:
push:
branches:
- main
paths-ignore:
- 'docs/**'
- '**.md'
workflow_dispatch:
inputs:
jobs:
build_and_deploy:
permissions:
contents: read
runs-on: ubuntu-latest
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
PLT_SERVER_HOSTNAME: BBBBBBBBBB
PORT: 312312
PLT_SERVER_LOGGER_LEVEL: debug
DEPLOY_SERVICE_HOST: https://plt-development-deploy-service.fly.dev
steps:
- name: Checkout application project repository
uses: actions/checkout@v3
- name: npm install --omit=dev
run: npm install --omit=dev
- name: Deploy project
uses: platformatic/onestep@latest
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
platformatic_workspace_id: ${{ secrets.PLATFORMATIC_STATIC_WORKSPACE_ID }}
platformatic_workspace_key: ${{ secrets.PLATFORMATIC_STATIC_WORKSPACE_API_KEY }}
platformatic_config_path: platformatic.db.json