From 3bd58946e6f2235fcde4813351636358b2229df1 Mon Sep 17 00:00:00 2001 From: alexeh Date: Sat, 31 Aug 2024 12:18:06 +0200 Subject: [PATCH] add railway deployment --- .github/workflows/deploy.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..ce5a0f1 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,34 @@ +name: Deploy to Railway + +on: + push: + branches: [main] + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + + - name: Node setup + uses: actions/setup-node@v4 + with: + node-version: '20.x' + + - uses: pnpm/action-setup@v4 + with: + version: '9' + + - name: Install packages + run: pnpm install + + - name: Install Railway + run: pnpm i -g @railway/cli + + - name: Deploy + run: railway up --service nestjs-admin + env: + RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }} \ No newline at end of file