Fix GitHub Actions to use Eclipse Temurin JDK 11 #65
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: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| name: "Stable Release" | |
| runs-on: ubuntu-latest | |
| environment: production | |
| services: | |
| mongodb: | |
| image: mongo:3.2 | |
| ports: | |
| - 27017:27017 | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up JDK 11 | |
| uses: actions/setup-java@v2 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '11' | |
| - name: Log in to Docker Hub | |
| run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} | |
| - uses: oleksiyrudenko/[email protected] | |
| with: | |
| token: '${{ secrets.GITHUB_TOKEN }}' | |
| - name: Release | |
| run: ./sbt "release with-defaults" |