diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 89c9eeb..94e32f3 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -21,6 +21,18 @@ jobs: - run: npm run build - uses: w9jds/firebase-action@master with: - args: deploy --only hosting + args: deploy env: - FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} \ No newline at end of file + FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} + + - name: Update Firestore database with train data + uses: fjogeleit/http-request-action@v1 + with: + url: 'https://us-central1-irishrailtracker.cloudfunctions.net/postLiveTrainData' + method: 'GET' + + - name: Update Firestore database with station data + uses: fjogeleit/http-request-action@v1 + with: + url: 'https://us-central1-irishrailtracker.cloudfunctions.net/postStationData' + method: 'GET' \ No newline at end of file