Skip to content

Commit

Permalink
add alwaysdata deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Sep 20, 2024
1 parent 1868c1a commit 06631ac
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/alwaysdata.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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: 22
rm: true
strip_components: 1
source: .output
target: app
2 changes: 1 addition & 1 deletion deployments.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const deployments = [
{
name: "Alwaysdata",
url: "",
url: "https://nitro.alwaysdata.net/",
dash: "https://admin.alwaysdata.com/",
docs: "https://nitro.unjs.io/deploy/providers/alwaysdata",
},
Expand Down

0 comments on commit 06631ac

Please sign in to comment.