Merge pull request #358 from NordicSemiconductor/renovate/all #164
Workflow file for this run
This file contains hidden or 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 version catalog to Maven Central | |
| on: | |
| push: | |
| tags: | |
| - '*' | |
| workflow_dispatch: | |
| jobs: | |
| deployToNexus: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - shell: bash | |
| env: | |
| # The following env variables are used by version-catalog/build.gradle.kts | |
| GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }} | |
| GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }} | |
| # The following env variables are used by gradle/publish-root.gradle.kts | |
| OSSR_USERNAME: ${{ secrets.OSSR_USERNAME }} | |
| OSSR_PASSWORD: ${{ secrets.OSSR_PASSWORD }} | |
| SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }} | |
| # The script generates sec.gpg file that is required by version-catalog/build.gradle.kts | |
| # and starts :deployVersionCatalog lane using fastlane. | |
| run: | | |
| echo "${{ secrets.GPG_FILE }}" > sec.gpg.asc | |
| gpg -d --passphrase "${{ secrets.GPG_FILE_PSWD }}" --batch sec.gpg.asc > sec.gpg | |
| fastlane deployVersionCatalog |