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]
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: deploy-telegram-relay
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Typecheck and test
|
||||
test-and-deploy:
|
||||
name: Test and deploy
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@ -20,16 +16,14 @@ jobs:
|
||||
with:
|
||||
node-version: '20'
|
||||
|
||||
- run: npm ci
|
||||
- run: npm run typecheck
|
||||
- run: npm test
|
||||
- name: Install
|
||||
run: npm ci
|
||||
|
||||
deploy:
|
||||
name: Deploy to VPS
|
||||
needs: test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Typecheck
|
||||
run: npm run typecheck
|
||||
|
||||
- name: Test
|
||||
run: npm test
|
||||
|
||||
- name: Deploy over SSH
|
||||
env:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user