Skip to content

Commit 01fa614

Browse files
committed
Update ghpages.yml
1 parent 10d401b commit 01fa614

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

.github/workflows/ghpages.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,38 +20,38 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- name: "Checkout"
23-
uses: actions/checkout@v2
23+
uses: actions/checkout@v4
2424

25-
- name: "Cache Setup"
26-
id: cache-setup
27-
run: |
28-
mkdir -p "$HOME"/.cache/xml2rfc
29-
echo "::set-output name=path::$HOME/.cache/xml2rfc"
30-
date -u "+::set-output name=date::%FT%T"
25+
- name: "Setup"
26+
id: setup
27+
run: date -u "+date=%FT%T" >>"$GITHUB_OUTPUT"
3128

32-
- name: "Cache References"
33-
uses: actions/cache@v2
29+
- name: "Caching"
30+
uses: actions/cache@v4
3431
with:
3532
path: |
36-
${{ steps.cache-setup.outputs.path }}
33+
.refcache
34+
.venv
35+
.gems
36+
node_modules
3737
.targets.mk
38-
key: refcache-${{ steps.cache-setup.outputs.date }}
39-
restore-keys: |
40-
refcache-${{ steps.cache-setup.outputs.date }}
41-
refcache-
38+
key: i-d-${{ steps.setup.outputs.date }}
39+
restore-keys: i-d-
4240

4341
- name: "Build Drafts"
4442
uses: martinthomson/i-d-template@v1
43+
with:
44+
token: ${{ github.token }}
4545

4646
- name: "Update GitHub Pages"
4747
uses: martinthomson/i-d-template@v1
4848
if: ${{ github.event_name == 'push' }}
4949
with:
5050
make: gh-pages
51-
token: ${{ secrets.GITHUB_TOKEN }}
51+
token: ${{ github.token }}
5252

5353
- name: "Archive Built Drafts"
54-
uses: actions/upload-artifact@v2
54+
uses: actions/upload-artifact@v4
5555
with:
5656
path: |
5757
draft-*.html

0 commit comments

Comments
 (0)