From e6921ed132bcab5867a43a3c47f165bc4a3fdd72 Mon Sep 17 00:00:00 2001 From: Martin Goldhahn Date: Fri, 27 Dec 2024 21:21:34 +0100 Subject: [PATCH 1/2] https scm URL in github profile --- .github/workflows/deploy.yml | 17 +++++++++++------ pom.xml | 21 ++++++--------------- 2 files changed, 17 insertions(+), 21 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3f48f0bb..568d19d6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -6,10 +6,13 @@ on: java-version: description: 'Java version' required: true + type: choice + options: + - '21' + - '8' + - '11' + - '17' default: '21' - validation: - pattern: '^(8|11|17|21)$' - error: 'Must be one of: 8, 11, 17, 21' do-build: description: 'Build the project' required: true @@ -24,7 +27,9 @@ on: jobs: deploy: runs-on: ubuntu-24.04 - + permissions: + pages: write + packages: write steps: - uses: actions/checkout@v4 - name: Set up JDK ${{ inputs.java-version }} @@ -42,7 +47,7 @@ jobs: ${{ runner.os }}-maven-${{ inputs.java-version }} - name: Deploy with Maven if: inputs.do-build - run: mvn -B deploy -DskipTests + run: mvn -B deploy -DskipTests -P github - name: Maven Site if: inputs.do-site - run: mvn -B site site:stage scm-publish:publish-scm + run: mvn -B site site:stage scm-publish:publish-scm -P github diff --git a/pom.xml b/pom.xml index c3c954c2..3e7498dc 100644 --- a/pom.xml +++ b/pom.xml @@ -341,23 +341,14 @@ - local - - - env.MAVEN_PROFILE - local - - - - file://${env.PWD}/target - + github - local - Local Deployment - ${devlocal.base}/site + github-pages + Github Pages + https://github.com/maddingo/nio-fs-provider.git - + From d2c30ce00e41fbd61132a8783dbb70e2d647d5a9 Mon Sep 17 00:00:00 2001 From: Martin Goldhahn Date: Fri, 27 Dec 2024 21:30:09 +0100 Subject: [PATCH 2/2] exclude build trigger on certain files --- .github/workflows/maven.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 79b69553..f7f0a5c7 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -8,6 +8,10 @@ on: branches: [ "master" ] pull_request: branches: [ "master" ] + paths-ignore: + - .github/workflows/deploy.yml + - README.md + - '**/site/**' jobs: build: