From 8b5c24436f6784ba63e798e0e96bc65374eb9e4f Mon Sep 17 00:00:00 2001 From: Fons van der Plas Date: Wed, 20 Sep 2023 17:35:25 +0200 Subject: [PATCH] update GHA --- .github/workflows/Export.yml | 9 ++++----- .github/workflows/KeepCacheFresh.yml | 16 ++++++++++++++++ 2 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/KeepCacheFresh.yml diff --git a/.github/workflows/Export.yml b/.github/workflows/Export.yml index 7683593..1de4ff3 100644 --- a/.github/workflows/Export.yml +++ b/.github/workflows/Export.yml @@ -39,9 +39,9 @@ jobs: uses: actions/cache@v3 with: path: pluto_state_cache - key: ${{ runner.os }}-pluto_state_cache-v2-${{ hashFiles('**/Project.toml', '**/Manifest.toml', '.github/workflows/*' ) }}-${{ hashFiles('**/*jl') }} + key: ${{ runner.os }}-pluto_state_cache-v3-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}-${{ github.run_id }} restore-keys: | - ${{ runner.os }}-pluto_state_cache-v2-${{ hashFiles('**/Project.toml', '**/Manifest.toml', '.github/workflows/*' ) }} + ${{ runner.os }}-pluto_state_cache-v3-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }} - name: install GL dependencies run: sudo apt-get update && sudo apt-get install -y xorg-dev mesa-utils xvfb libgl1 freeglut3-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev xsettingsd x11-xserver-utils @@ -66,6 +66,5 @@ jobs: - name: Deploy to dist uses: JamesIves/github-pages-deploy-action@releases/v4 with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - BRANCH: dist - FOLDER: output + branch: dist + folder: output diff --git a/.github/workflows/KeepCacheFresh.yml b/.github/workflows/KeepCacheFresh.yml new file mode 100644 index 0000000..6bb817e --- /dev/null +++ b/.github/workflows/KeepCacheFresh.yml @@ -0,0 +1,16 @@ +name: Keep caches fresh +on: + schedule: + - cron: "5 4 1/4 * *" # every 4 days + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: Set up notebook state cache + uses: actions/cache@v3 + with: + path: pluto_state_cache + key: ${{ runner.os }}-pluto_state_cache-v3-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}-${{ github.run_id }} + restore-keys: | + ${{ runner.os }}-pluto_state_cache-v3-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}