chore(deps): update dependency semantic-release-preconfigured-convent… #337
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: CI/CD Process | |
on: | |
workflow_call: | |
workflow_dispatch: | |
push: | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ windows-2022, macos-14, ubuntu-24.04 ] | |
runs-on: ${{ matrix.os }} | |
concurrency: | |
group: build-${{ github.workflow }}-${{ matrix.os }}-${{ github.event.number || github.ref }} | |
cancel-in-progress: true | |
steps: | |
- name: Checkout | |
uses: DanySK/[email protected] | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- uses: DanySK/[email protected] | |
env: | |
MAVEN_TOKEN_USERNAME: ${{ secrets.MAVEN_TOKEN_USERNAME }} | |
MAVEN_TOKEN_PASSWORD: ${{ secrets.MAVEN_TOKEN_PASSWORD }} | |
with: | |
# Dry-deployment | |
check-command: ./gradlew build --parallel | |
deploy-command: >- | |
./gradlew | |
uploadKotlinOSSRHToMavenCentralNexus | |
uploadPluginMavenToMavenCentralNexus | |
uploadPluginMarkerMavenToMavenCentralNexus | |
close | |
drop | |
--parallel | |
should-run-codecov: ${{ runner.os == 'Linux' }} | |
should-deploy: >- | |
${{ | |
runner.os == 'Linux' | |
&& !github.event.repository.fork | |
&& github.event_name != 'pull_request' | |
}} | |
maven-central-username: ${{ secrets.MAVEN_CENTRAL_USERNAME }} | |
maven-central-password: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} | |
signing-key: ${{ secrets.SIGNING_KEY }} | |
signing-password: ${{ secrets.SIGNING_PASSWORD }} | |
release: | |
permissions: | |
contents: write | |
packages: write | |
concurrency: | |
# Only one release job at a time. Strictly sequential. | |
group: release | |
needs: | |
- build | |
runs-on: ubuntu-24.04 | |
if: >- | |
!github.event.repository.fork | |
&& github.event_name != 'pull_request' | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
token: ${{ github.token }} | |
- name: Find the version of Node from package.json | |
id: node-version | |
run: echo "version=$(jq -r .engines.node package.json)" >> $GITHUB_OUTPUT | |
- name: Install Node | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ steps.node-version.outputs.version }} | |
- uses: DanySK/[email protected] | |
with: | |
build-command: true | |
check-command: true | |
deploy-command: | | |
npm install | |
npx semantic-release | |
should-run-codecov: false | |
should-deploy: true | |
github-token: ${{ github.token }} | |
gradle-publish-secret: ${{ secrets.GRADLE_PUBLISH_SECRET }} | |
gradle-publish-key: ${{ secrets.GRADLE_PUBLISH_KEY }} | |
maven-central-username: ${{ secrets.MAVEN_CENTRAL_USERNAME }} | |
maven-central-password: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} | |
signing-key: ${{ secrets.SIGNING_KEY }} | |
signing-password: ${{ secrets.SIGNING_PASSWORD }} | |
success: | |
runs-on: ubuntu-24.04 | |
needs: | |
- release | |
- build | |
if: >- | |
always() && ( | |
contains(join(needs.*.result, ','), 'failure') | |
|| !contains(join(needs.*.result, ','), 'cancelled') | |
) | |
steps: | |
- name: Verify that there were no failures | |
run: ${{ !contains(join(needs.*.result, ','), 'failure') }} |