diff --git a/.github/workflows/ghpages.yml b/.github/workflows/ghpages.yml index 8bc4a3c..a1bf36e 100644 --- a/.github/workflows/ghpages.yml +++ b/.github/workflows/ghpages.yml @@ -20,39 +20,39 @@ jobs: runs-on: ubuntu-latest steps: - name: "Checkout" - uses: actions/checkout@v2 + uses: actions/checkout@v4 - - name: "Cache Setup" - id: cache-setup - run: | - mkdir -p "$HOME"/.cache/xml2rfc - echo "::set-output name=path::$HOME/.cache/xml2rfc" - date -u "+::set-output name=date::%FT%T" - - name: "Cache References" - uses: actions/cache@v2 + - name: "Setup" + id: setup + run: date -u "+date=%FT%T" >>"$GITHUB_OUTPUT" + + - name: "Caching" + uses: actions/cache@v4 with: - path: ${{ steps.cache-setup.outputs.path }} - key: refcache-${{ steps.cache-setup.outputs.date }} - restore-keys: | - refcache-${{ steps.cache-setup.outputs.date }} - refcache- + path: | + .refcache + .venv + .gems + node_modules + .targets.mk + key: i-d-${{ steps.setup.outputs.date }} + restore-keys: i-d- + - name: "Build Drafts" uses: martinthomson/i-d-template@v1 - + with: + token: ${{ github.token }} + - name: "Update GitHub Pages" uses: martinthomson/i-d-template@v1 if: ${{ github.event_name == 'push' }} with: make: gh-pages - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: "Save HTML" - uses: actions/upload-artifact@v4 - with: - path: "*.html" + token: ${{ github.token }} - - name: "Save Text" + - name: "Archive Built Drafts" uses: actions/upload-artifact@v4 with: - path: "*.txt" + path: | + draft-*.html + draft-*.txt