Combine build and deploy steps.
Build Web App / build-and-deploy (push) Successful in 10s Details

This commit is contained in:
Andrew Lalis 2025-08-07 20:28:31 -04:00
parent 9e016c81cb
commit d0c33c4f3b
1 changed files with 2 additions and 12 deletions

View File

@ -5,7 +5,7 @@ on:
- 'web-app/**' - 'web-app/**'
- '.gitea/workflows/build-web-app.yaml' - '.gitea/workflows/build-web-app.yaml'
jobs: jobs:
build-and-test: build-and-deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -14,16 +14,6 @@ jobs:
node-version: '22.x' node-version: '22.x'
- run: npm ci - run: npm ci
working-directory: ./web-app working-directory: ./web-app
- run: npm run build --if-present - run: npm run build
working-directory: ./web-app working-directory: ./web-app
- uses: christopherhx/gitea-upload-artifact@v4
with:
path: ./web-app/dist
deploy:
runs-on: ubuntu-latest
needs: build-and-test
steps:
- uses: christopherhx/gitea-download-artifact@v4
- run: echo "Hello world!"
- run: echo "rsync -rav -e ssh --delete artifact/* root@andrewlalis.com:/opt/finnow/app-content" - run: echo "rsync -rav -e ssh --delete artifact/* root@andrewlalis.com:/opt/finnow/app-content"