Skip to content

Commit

Permalink
add alwaysdata flow
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Sep 20, 2024
1 parent bc9af7f commit 0e56499
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/alwaysdata.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: alwaysdata

on:
push:
branches:
- main
- alwaysdata

jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: corepack enable
- uses: actions/setup-node@v3
with:
node-version: 20
cache: pnpm
- run: pnpm install
- run: pnpm build
env:
NITRO_PRESET: alwaysdata
- uses: appleboy/scp-action@v0.1.7
with:
host: ssh-nitro.alwaysdata.net
username: nitro
password: ${{ secrets.ALWAYSDATA_SSH_PASS }}
port: 21
source: ".output"
target: www/app

0 comments on commit 0e56499

Please sign in to comment.