From 94658119f2c0b555f83e870fbeb50150f18fc38d Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Thu, 6 Nov 2025 16:18:09 +0100 Subject: Add build steps for stop report script and update deployment workflow --- .github/workflows/deploy.yml | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) (limited to '.github/workflows') diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d5eb6ad..3021d0a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -65,9 +65,26 @@ jobs: path: dist/backend retention-days: 7 + build-stops-script: + runs-on: ubuntu-latest + name: Build stop report script + environment: Production + permissions: + contents: read + steps: + - uses: actions/checkout@v5 + with: + submodules: true + lfs: false + - name: Archive Stop Report Script Artifact + uses: actions/upload-artifact@v5 + with: + name: stop_report + path: src/gtfs_vigo_stops/ + deploy: runs-on: ubuntu-latest - needs: [build-frontend, build-backend] + needs: [build-frontend, build-backend, build-stops-script] name: Deploy to production server environment: Production steps: @@ -81,6 +98,11 @@ jobs: with: name: backend path: dist/backend + - name: Download Stop Report Script Artifact + uses: actions/download-artifact@v6 + with: + name: stop_report + path: dist/stop_report - name: Connect to tailnet uses: tailscale/github-action@v4 with: @@ -115,3 +137,7 @@ jobs: - name: Start service run: ssh ${{ secrets.TARGET_USER }}@${{ secrets.TARGET_HOST }} "echo ${{ secrets.TARGET_PASSWORD }} | sudo -S /usr/bin/systemctl start busurbano" + + - name: Deploy stop report script + run: | + scp -r dist/stop_report/* ${{ secrets.TARGET_USER }}@${{ secrets.TARGET_HOST }}:/opt/gtfs_vigo_stops/ -- cgit v1.3