Skip to content

Commit

Permalink
Use the latest GitHub Actions when generating a GitHub Pages workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
benpickles committed Oct 6, 2024
1 parent d428e48 commit 0d809fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/parklife/templates/github_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- uses: actions/configure-pages@v3
- uses: actions/configure-pages@v5
id: pages

# Build with Parklife and use its GitHub Pages URL (either its custom
# domain or username.github.io/repository).
- run: bin/static-build --base "${{ steps.pages.outputs.base_url }}"

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
if: github.ref == 'refs/heads/main' # Only upload on main branch.
with:
path: build/
Expand All @@ -45,4 +45,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4

0 comments on commit 0d809fc

Please sign in to comment.