Fetch releases from S3 #330
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: Fetch releases from S3 | |
| on: | |
| push: | |
| branches: main | |
| schedule: | |
| - cron: "0 1 * * *" | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| permissions: | |
| contents: read # required to checkout the code from the repo | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: true | |
| jobs: | |
| deploy: | |
| name: Build and Deploy | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pages: write # required to deploy to GitHub Pages | |
| id-token: write # required to use OIDC authentication | |
| contents: read | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| cd utils | |
| pip install -r requirements.txt | |
| - name: Build releases.json and latest.dbb | |
| run: | | |
| cd utils | |
| python3 fetch-releases-from-s3.py | |
| python3 simple-registry-manifest.py | |
| - name: Copy output to publish directory | |
| run: | | |
| mkdir publish | |
| cp utils/releases.json publish/ | |
| cp utils/registry-manifest.json publish/ | |
| cp utils/latest.ddb publish/ | |
| cp utils/latest.ddb publish/latest.dbb | |
| cp overture_releases.yaml publish/ | |
| - name: Setup Pages | |
| uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0 | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0 | |
| with: | |
| path: 'publish' | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0 |