Skip to content

Commit

Permalink
Service workflow: Bump peaceiris/actions-gh-pages from 3.9.3 to 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jemus42 committed May 3, 2024
1 parent fe38c89 commit aa5a20c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/fix-figure-paths.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:

- name: Fix figure paths in-place
run: |
sed -i -E "s\slides/[a-z-]+/figure\figure\g" $(find slides -iname "*.tex")
sed -i -E "s\slides/[0-9a-z-]+/figure\figure\g" $(find slides -iname "*.tex")
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
Expand All @@ -63,7 +63,7 @@ jobs:
To locally auto-fix this, the following command can be used on Linux:
```sh
sed -i -E "s\slides/[a-z-]+/figure\figure\g" $(find slides -iname "*.tex")
sed -i -E "s\slides/[0-9a-z-]+/figure\figure\g" $(find slides -iname "*.tex")
```
Which is exactly what this workflow does.
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/render-lecture-slide-status.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,6 @@ jobs:
# Don't show progress bar, very verbose for large repos
show-progress: false

# Get a tmux ssh session for interactive debugging
# Controlled via inputs from GitHub webinterface
# See https://github.com/mxschmitt/action-tmate
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}

# Standard R/pandoc/latex setup steps
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
Expand All @@ -82,7 +75,7 @@ jobs:
run: |
echo "dir=$(Rscript --quiet -e 'cat(.libPaths()[[1]])')" >> $GITHUB_OUTPUT
- name: Restore R package cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ steps.r-cache.outputs.dir }}
key: ${{ runner.os }}-r-${{inputs.cache-version }}-${{ hashFiles('scripts/install_r_deps.R') }}
Expand All @@ -104,6 +97,13 @@ jobs:
- name: Install the service package
run: make install-service

# Get a tmux ssh session for interactive debugging
# Controlled via inputs from GitHub webinterface
# See https://github.com/mxschmitt/action-tmate
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}

# Run the main thing: compiles slides, checks against slides-pdf/*, renderes Rmd -> html site with results
# Resulting output is in ./_site
- name: Check slides and build HTML overview
Expand All @@ -112,7 +112,7 @@ jobs:
# Deploy using this rather than JamesIves/github-pages-deploy-action, as this supports pushing
# orphan branches. Since we're adding a bunch of PDFs, we really want to avoid a bloated branch history
- name: Deploy to GitHub pages
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site
Expand Down

0 comments on commit aa5a20c

Please sign in to comment.