Bump actions/setup-java from 4.4.0 to 4.5.0 #442
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GitHub Pages | |
on: | |
push: | |
branches: [ main] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
permissions: | |
contents: read | |
# Allow one concurrent deployment, per branch | |
concurrency: | |
group: "${{ github.workflow }}-${{ github.ref }}" | |
cancel-in-progress: true | |
jobs: | |
build_pages: | |
if: ${{ github.repository_owner == 'creek-service' }} | |
runs-on: ubuntu-latest | |
env: | |
BUNDLE_GEMFILE: ${{ github.workspace }}/docs/Gemfile | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3.2.0 | |
with: | |
fetch-depth: 0 # need full history to get page last modified times | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@7bae1d00b5db9166f4f0fc47985a3a5702cb58f0 # v1.197.0 | |
with: | |
ruby-version: '3.1' | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
cache-version: 0 # Increment this number if you need to re-download cached gems | |
- name: Setup Pages | |
id: pages | |
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0 | |
- name: Build with Jekyll | |
# Outputs to the './docs/_site' directory by default | |
run: (cd docs && bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}") | |
env: | |
JEKYLL_ENV: production | |
- name: Upload artifact | |
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' | |
# Automatically uploads an artifact from the './_site' directory by default | |
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1 | |
with: | |
path: "docs/_site/" | |
# Deployment job | |
deploy_pages: | |
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' | |
needs: build_pages | |
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment | |
permissions: | |
pages: write # to deploy to Pages | |
id-token: write # to verify the deployment originates from an appropriate source | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5 | |
- name: Ping Google Search | |
run: curl "https://www.google.com/ping?sitemap=https://www.creekservice.org/${{ github.event.repository.name }}/sitemap.xml" |