Skip to content

Commit

Permalink
update GHA versions and fix keepcachefresh
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Aug 10, 2024
1 parent 2358c67 commit 91f39f3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ExportNotebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,31 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Fall 24 source
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: 🙌 Install Julia
uses: julia-actions/setup-julia@v1
uses: julia-actions/setup-julia@v2
with:
version: "1.10.4"

- name: ⏱ Cache notebook states
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: _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') }}
- name: ⏱ Cache .julia
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.julia
key: ${{ runner.os }}-dotjulia-v1-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-dotjulia-v1-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}
- name: 📅 Checkout Fall20, Spring21, Fall22, Fall23 output
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: Fall23-output
ref: Fall23-output
Expand All @@ -51,7 +51,7 @@ jobs:


- name: 📰 Upload site generation report
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: always()
with:
path: generation_report.html
Expand All @@ -67,8 +67,8 @@ jobs:
mv extra_outputs/* www
- name: 🚀 Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@releases/v3
uses: JamesIves/github-pages-deploy-action@4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: Fall24-output
FOLDER: www
token: ${{ secrets.GITHUB_TOKEN }}
branch: Fall24-output
folder: www
10 changes: 8 additions & 2 deletions .github/workflows/KeepCacheFresh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,27 @@ name: Keep caches fresh
on:
schedule:
- cron: "5 4 1/4 * *" # every 4 days
concurrency:
group: export
cancel-in-progress: false

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Fall 24 source
uses: actions/checkout@v4

- name: ⏱ Cache notebook states
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: _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') }}
- name: ⏱ Cache .julia
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.julia
key: ${{ runner.os }}-dotjulia-v1-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}-${{ github.run_id }}
Expand Down

0 comments on commit 91f39f3

Please sign in to comment.