Merge pull request #15 from desmondlsl/update-github-workflows #882
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Data Fetching | |
| on: | |
| push: | |
| schedule: | |
| - cron: "5 19 * * *" | |
| workflow_dispatch: | |
| jobs: | |
| Fetch-Route-Data: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v6 | |
| - name: Setup Python environment | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.12' | |
| architecture: 'x64' | |
| - name: Crawling resources | |
| run: python waypoints.py # pfaedle runs from its official Docker image (preinstalled on the runner) | |
| - name: Deploy | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| branch: gh-pages # The branch the action should deploy to. | |
| folder: waypoints # The folder the action should deploy. | |
| single-commit: true |