Skip to content

Commit

Permalink
Fix permissions, update caching mechanics
Browse files Browse the repository at this point in the history
  • Loading branch information
dhinakg committed Oct 13, 2024
1 parent 045d3b8 commit d74bd8d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ on:
concurrency:
group: ${{ github.workflow }}


permissions:
contents: read
pages: write
id-token: write

jobs:
docs:
name: Build OpenCore HTML Docs
Expand Down Expand Up @@ -46,6 +52,7 @@ jobs:
run: |
echo "version=$(brew info --cask basictex --json=v2 | jq -r '.casks[0].version')" >> "$GITHUB_OUTPUT"
- name: Cache Brew Downloads
id: cache
uses: actions/cache@v4
with:
path: |
Expand All @@ -59,6 +66,7 @@ jobs:
/usr/local/texlive
key: ${{ runner.os }}-basictex-${{ steps.mactexversion.outputs.version }}
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
brew install --cask basictex
- name: Refresh PATH
Expand All @@ -67,6 +75,7 @@ jobs:
echo "$PATH" >> $GITHUB_PATH
- uses: shogo82148/actions-setup-perl@v1
- name: Install LaTeX Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
sudo tlmgr update --self
sudo tlmgr update texlive-scripts
Expand Down

0 comments on commit d74bd8d

Please sign in to comment.