Skip to content

Commit

Permalink
Update deployment workflow (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrhill authored Oct 2, 2024
1 parent a55f0b7 commit bf7e4c4
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/Deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,39 +15,40 @@ on:
push:
branches:
- main
- master

# This action needs permission to write the exported HTML file to the gh-pages branch.
permissions:
contents: write

jobs:
build-and-deploy:
runs-on: ubuntu-latest

# This action needs permission to write the exported HTML file to the gh-pages branch.
permissions:
actions: write # needed to allow julia-actions/cache to proactively delete old caches that it has created
contents: write
statuses: write

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

# NOTE: Python is necessary for the pre-rendering (minification) step
- name: Install python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.8'
python-version: '3.12'

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

- name: Cache Julia artifacts & such
uses: julia-actions/cache@v1
uses: julia-actions/cache@v2
with:
cache-registries: "true"

# We set up a folder that Pluto can use to cache exported notebooks. If the notebook file did not change, then Pluto can take the exported file from cache instead of running the notebook.
- name: Set up notebook state cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: pluto_state_cache
key: ${{ runner.os }}-pluto_state_cache-v2-${{ hashFiles('**/Project.toml', '**/Manifest.toml', '.github/workflows/*' ) }}-${{ hashFiles('**/*jl') }}
Expand Down

0 comments on commit bf7e4c4

Please sign in to comment.