Merge pull request #1182 from eikek/update/sbt-scalafmt-2.5.2 #523
This file contains 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 Nightly | |
on: | |
push: | |
branches: | |
- "master" | |
jobs: | |
release-nightly: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: true | |
matrix: | |
java: [ 'openjdk@1.11' ] | |
steps: | |
- uses: actions/checkout@v3.6.0 | |
with: | |
fetch-depth: 0 | |
- uses: olafurpg/setup-scala@v14 | |
with: | |
java-version: ${{ matrix.java }} | |
- uses: jorelali/setup-elm@v5 | |
with: | |
elm-version: 0.19.1 | |
- uses: bahmutov/npm-install@v1 | |
with: | |
working-directory: modules/webapp | |
- name: Coursier cache | |
uses: coursier/cache-action@v6 | |
- name: Set current version | |
run: echo "SHARRY_VERSION=$(cat version.sbt | grep version | cut -d= -f2 | xargs)" >> $GITHUB_ENV | |
- name: sbt ci ${{ github.ref }} | |
run: sbt ci | |
- name: sbt make-pkg (${{ env.SHARRY_VERSION }}) | |
run: sbt make-pkg | |
- uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: "nightly" | |
prerelease: true | |
title: "Sharry Nightly" | |
files: | | |
modules/restserver/target/sharry-restserver_${{ env.SHARRY_VERSION }}_all.deb | |
modules/restserver/target/universal/sharry-restserver-${{ env.SHARRY_VERSION }}.zip | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Build and push Docker Images (${{ env.SHARRY_VERSION }}) | |
run: ./docker/build-images.sh ${{ env.SHARRY_VERSION }} --push |