Skip to content

update cache

update cache #23

Workflow file for this run

name: CI
on:
push:
schedule:
- cron: "0 8 * * *"
defaults:
run:
shell: pwsh
jobs:
build:
runs-on: ubuntu-latest
env:
PYTHONUTF8: 1
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: "3.12"
- name: Prepare env
run: |
python -m pip install -r ./requirements.txt
sed -i 's/\"package\"/\"image\"/' ./config.json
# - name: Checkout pages
# run: |
# git fetch origin gh-pages
# git worktree add ./dist gh-pages
- name: Force update
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && startsWith(github.event.head_commit.message, '[update]') }}
run: |
rm ./dist/process.json
- name: Run
run: |
python -m index
- name: Upload pages artifact
uses: actions/upload-pages-artifact@v4
with:
path: ./dist
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: dist
path: ./dist
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: cache
path: |
./cache
!./cache/*/wheels
# uses: JamesIves/github-pages-deploy-action@v4
# with:
# token: ${{ secrets.PA_TOKEN }}
# branch: gh-pages
# folder: ./dist
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4