Simplify deploy workflow to a single job for act_runner.
This commit is contained in:
parent
9615f6cb1e
commit
ed20c35396
@ -5,13 +5,9 @@ on:
|
|||||||
branches: [main]
|
branches: [main]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: deploy-telegram-relay
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test-and-deploy:
|
||||||
name: Typecheck and test
|
name: Test and deploy
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@ -20,16 +16,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: '20'
|
||||||
|
|
||||||
- run: npm ci
|
- name: Install
|
||||||
- run: npm run typecheck
|
run: npm ci
|
||||||
- run: npm test
|
|
||||||
|
|
||||||
deploy:
|
- name: Typecheck
|
||||||
name: Deploy to VPS
|
run: npm run typecheck
|
||||||
needs: test
|
|
||||||
runs-on: ubuntu-latest
|
- name: Test
|
||||||
steps:
|
run: npm test
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Deploy over SSH
|
- name: Deploy over SSH
|
||||||
env:
|
env:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user