diff --git a/.github/deploy_release.yml b/.github/workflows/deploy_release.yml similarity index 97% rename from .github/deploy_release.yml rename to .github/workflows/deploy_release.yml index 6dd79bd..33fa858 100644 --- a/.github/deploy_release.yml +++ b/.github/workflows/deploy_release.yml @@ -31,31 +31,31 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - + - name: Set up Python 3.11 uses: actions/setup-python@v3 with: python-version: "3.11" - + - name: Install dependencies run: | python -m pip install --upgrade pip pip install boto3 - + - name: Build releases.json run: cd utils && python3 fetch-releases-from-s3.py - name: Copy output to publish directory run: mkdir publish && cp utils/releases.json publish/ - + - name: Setup Pages uses: actions/configure-pages@v5 - + - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: path: 'publish' - + - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 diff --git a/.github/workflows/fetch-releases.yml b/.github/workflows/fetch-releases.yml deleted file mode 100644 index a5cb64e..0000000 --- a/.github/workflows/fetch-releases.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Fetch releases from S3 - -on: - push: - branches: main - schedule: - - cron: "0 1 * * *" - - workflow_dispatch: - -jobs: - run: - runs-on: ubuntu-latest - steps: - - name: Checkout Repo - uses: actions/checkout@v3 - - - name: Set up Python 3.11 - uses: actions/setup-python@v3 - with: - python-version: "3.11" - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install boto3 - - - name: Get all history from checkfront - run: cd utils && python3 fetch-releases-from-s3.py - - - name: copy_output_to_build - run: mkdir publish && cp utils/releases.json publish/ - - - name: Deploy 🚀 - uses: JamesIves/github-pages-deploy-action@v4 - with: - folder: publish