Skip to content

Add documentation on how to upgrade Java for Jenkins #750

Add documentation on how to upgrade Java for Jenkins

Add documentation on how to upgrade Java for Jenkins #750

Workflow file for this run

name: Static site build and publish
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
name: 'Build and Test'
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.1
architecture: 'x64'
bundler-cache: true
- name: Build
run: bundle exec middleman build
- name: 'Check for broken links'
run: bundle exec rake check_urls
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
publish:
needs: build
runs-on: ubuntu-latest
name: 'Publish Site'
steps:
- uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.1
architecture: 'x64'
bundler-cache: true
- name: Publish
run: |
rm -rf build
git status
git diff
git config --global user.email "[email protected]"
git config --global user.name "Platform Team"
git remote set-url origin https://nobody:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
bundle exec rake publish
if: github.ref == 'refs/heads/master'