Bump org.jenkins-ci.plugins:plugin from 5.1 to 5.2 (#1478) #161
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: Deploy API viewer to GitHub Pages | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment | |
permissions: | |
contents: read | |
pages: write # to deploy to Pages | |
id-token: write # to verify the deployment originates from an appropriate source | |
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | |
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
jobs: | |
build: | |
if: github.repository_owner == 'jenkinsci' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
cache: 'maven' | |
# https://github.com/jenkins-infra/github-reusable-workflows/issues/36 | |
- name: Set up Maven | |
run: | | |
wget --no-verbose https://downloads.apache.org/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz | |
echo $CHECKSUM apache-maven-$MAVEN_VERSION-bin.tar.gz | sha512sum --check | |
tar xzf apache-maven-$MAVEN_VERSION-bin.tar.gz | |
rm apache-maven-$MAVEN_VERSION-bin.tar.gz | |
sudo mv apache-maven-$MAVEN_VERSION /opt/maven | |
sudo rm -f /usr/bin/mvn | |
sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn | |
mvn --version | |
env: | |
MAVEN_VERSION: 3.9.9 | |
# https://downloads.apache.org/maven/maven-3/3.9.9/binaries/apache-maven-3.9.9-bin.tar.gz.sha512 | |
CHECKSUM: a555254d6b53d267965a3404ecb14e53c3827c09c3b94b5678835887ab404556bfaf78dcfe03ba76fa2508649dca8531c74bca4d5846513522404d48e8c4ac8b | |
- name: Setup Pages | |
uses: actions/configure-pages@v5 | |
- name: Build API viewer | |
run: mvn -B -V -e -ntp -Pquick-build clean verify | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: ./job-dsl-plugin/target/gh-pages | |
deploy: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |