-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
adds deployment file
1 parent
5b11666
commit 06d3dec
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
.github/workflows/platformatic-static-workspace-deploy.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Deploy Platformatic application to the cloud | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- 'docs/**' | ||
- '**.md' | ||
|
||
jobs: | ||
build_and_deploy: | ||
permissions: | ||
contents: read | ||
runs-on: ubuntu-latest | ||
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: 96d0d5a2-95be-4bd7-ac79-c4fc1662510c | ||
platformatic_workspace_key: ${{ secrets.PLATFORMATIC_STATIC_WORKSPACE_API_KEY }} | ||
platformatic_config_path: ./platformatic.db.json | ||
env: | ||
DATABASE_URL: sqlite://./db.sqlite | ||
PLT_SERVER_LOGGER_LEVEL: info | ||
PORT: 3042 | ||
PLT_SERVER_HOSTNAME: 127.0.0.1 |
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