Nightly Release of Scala 3 (34f20309c5a1ab77bc65c0a7ec643207b8a3b43a) #383
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: Nightly Release of Scala 3 | |
| run-name: Nightly Release of Scala 3 (${{ github.sha }}) | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 3 * * *' # Every day at 3 AM | |
| # The nightly documentation is pushed to scala/nightly.scala-lang.org with a | |
| # GitHub App token, and Maven artifacts with the project's Sonatype credentials, | |
| # so read-only access for the token is enough for every job. | |
| permissions: | |
| contents: read | |
| jobs: | |
| stdlib-tests: | |
| uses: ./.github/workflows/stdlib.yaml | |
| secrets: inherit | |
| mima-tests: | |
| uses: ./.github/workflows/mima.yaml | |
| secrets: inherit | |
| compiler-tests: | |
| uses: ./.github/workflows/compiler-tests.yaml | |
| secrets: inherit | |
| community-build-tests: | |
| uses: ./.github/workflows/community-build.yaml | |
| secrets: inherit | |
| misc-tests: | |
| uses: ./.github/workflows/misc-tests.yaml | |
| secrets: inherit | |
| release-maven-artifacts: | |
| uses: ./.github/workflows/release-maven-artifacts.yml | |
| needs: [stdlib-tests, mima-tests, compiler-tests, community-build-tests, misc-tests] | |
| with: | |
| environment: release-nightly | |
| secrets: inherit | |
| release-documentation: | |
| runs-on: ubuntu-latest | |
| environment: release-nightly | |
| needs: release-maven-artifacts | |
| env: | |
| NIGHTLYBUILD: ${{ vars.NIGHTLYBUILD }} | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0 | |
| with: | |
| distribution: 'adopt' | |
| java-version: 17 | |
| cache: 'sbt' | |
| - uses: sbt/setup-sbt@bfea3c5f48abd221b04a6df4798aa5eb8b6a2baf # v1.5.6 | |
| - name: Generate The Website | |
| run: ./project/scripts/sbt scaladoc/generateScalaDocumentation | |
| - name: Generate GitHub App Token | |
| id: app-token | |
| uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 | |
| with: | |
| app-id: ${{ secrets.SCALA_APP_ID }} | |
| private-key: ${{ secrets.SCALA_APP_PRIVATE_KEY }} | |
| owner: scala | |
| repositories: nightly.scala-lang.org | |
| - name: Deploy Website to https://nightly.scala-lang.org | |
| uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0 | |
| with: | |
| personal_token: ${{ steps.app-token.outputs.token }} | |
| publish_dir: scaladoc/output/scala3 | |
| external_repository: scala/nightly.scala-lang.org | |
| publish_branch: main |