aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2025-11-06 16:18:09 +0100
committerAriel Costas Guerrero <ariel@costas.dev>2025-11-06 16:18:09 +0100
commit94658119f2c0b555f83e870fbeb50150f18fc38d (patch)
tree15468955799b6ca778818e390ff5a1cacbe23701 /.github/workflows
parentc7ab736debbc43c1eef472a970398627fdcb91ae (diff)
Add build steps for stop report script and update deployment workflow
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/deploy.yml28
1 files changed, 27 insertions, 1 deletions
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/