Nightly Release of Scala 3 (3a6dac8a00bdd79d02b22cb43cb1601f31541744) #213
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 | |
| jobs: | |
| stdlib-tests: | |
| uses: ./.github/workflows/stdlib.yaml | |
| secrets: inherit | |
| release-maven-artifacts: | |
| uses: ./.github/workflows/release-maven-artifacts.yml | |
| needs: [stdlib-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@v6 | |
| - uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'adopt' | |
| java-version: 17 | |
| cache: 'sbt' | |
| - uses: sbt/setup-sbt@v1 | |
| - name: Generate The Website | |
| run: ./project/scripts/sbt scaladoc/generateScalaDocumentation | |
| - name: Generate GitHub App Token | |
| id: app-token | |
| uses: actions/create-github-app-token@v2 | |
| 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@v4 | |
| with: | |
| personal_token: ${{ steps.app-token.outputs.token }} | |
| publish_dir: scaladoc/output/scala3 | |
| external_repository: scala/nightly.scala-lang.org | |
| publish_branch: main |