Update sbt-ghpages to 0.9.0 (#1723) #58
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: Release | |
| on: | |
| push: | |
| tags: ["*"] | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| # setup build environment | |
| - name: Setup JDK | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: zulu | |
| java-version: 8 | |
| cache: sbt | |
| - uses: sbt/setup-sbt@v1 | |
| - run: sbt ci-release | |
| env: | |
| PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | |
| PGP_SECRET: ${{ secrets.PGP_SECRET }} | |
| SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
| SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
| # generate a github release | |
| - name: Generate release changelog | |
| id: changelog | |
| uses: heinrichreimer/github-changelog-generator-action@v2.1.1 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| cacheFile: '.github-changelog-cache' | |
| issues: true | |
| issuesWoLabels: true | |
| pullRequests: true | |
| prWoLabels: true | |
| unreleased: false | |
| onlyLastTag: true | |
| maxIssues: 100 | |
| output: LATEST_RELEASE.md | |
| - name: Read latest_release.md | |
| id: release_changelog | |
| uses: juliangruber/read-file-action@v1 | |
| with: | |
| path: ./LATEST_RELEASE.md | |
| - name: Create Github Release | |
| id: create_release | |
| uses: actions/create-release@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | |
| with: | |
| tag_name: ${{ github.ref }} | |
| release_name: Release ${{ github.ref }} | |
| body: ${{ steps.release_changelog.outputs.content }} | |
| draft: false | |
| prerelease: false |