Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/javadoc-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ on:

permissions:
contents: read
Comment on lines 13 to 14
pages: write
id-token: write

concurrency:
group: "pages"
Expand Down Expand Up @@ -50,7 +48,7 @@ jobs:
fi
mvn package -P release -DskipTests --batch-mode
mkdir -p apidocs-site
JAR_FILE=$(ls tsql-scriptdom-core/target/*-javadoc.jar | head -n 1)
JAR_FILE=$(ls ./tsql-scriptdom-core/target/*-javadoc.jar | head -n 1)
unzip -q "${JAR_FILE}" -d apidocs-site

- name: Configure GitHub Pages
Expand All @@ -65,6 +63,9 @@ jobs:
name: Deploy to GitHub Pages
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@ on:
default: false

permissions:
contents: write
packages: write
contents: read

jobs:
release:
name: Build, Package, and Distribute
runs-on: ubuntu-latest
permissions:
contents: write
packages: write

steps:
- name: Checkout repository
Expand Down Expand Up @@ -85,7 +87,7 @@ jobs:
cp tsql-scriptdom-core/target/tsql-scriptdom-core-${VERSION}-sources.jar release-assets/tsql-scriptdom-core-${VERSION}-sources.jar
cp tsql-scriptdom-core/target/tsql-scriptdom-core-${VERSION}-javadoc.jar release-assets/tsql-scriptdom-core-${VERSION}-javadoc.jar
cd release-assets
sha256sum * > SHA256SUMS
sha256sum ./* > SHA256SUMS
cd ..

- name: Create GitHub Release
Expand All @@ -96,9 +98,9 @@ jobs:
VERSION="${RELEASE_VERSION}"
TAG_NAME="v${VERSION}"
gh release create "${TAG_NAME}" \
release-assets/* \
./release-assets/* \
--title "Release v${VERSION}" \
--generate-notes || gh release upload "${TAG_NAME}" release-assets/* --clobber
--generate-notes || gh release upload "${TAG_NAME}" ./release-assets/* --clobber

- name: Deploy to GitHub Packages
env:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
branches: [ master ]
workflow_dispatch:

permissions:
contents: read

jobs:
sonar:
name: SonarCloud Scan
Expand Down Expand Up @@ -41,4 +44,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn clean verify sonar:sonar --batch-mode
run: mvn clean verify sonar:sonar -Dsonar.qualitygate.wait=true --batch-mode
Loading