diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9094c19a..523086b1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,25 +32,25 @@ jobs: npm run build - name: build backend run: sbt "set test in assembly := {}" clean assembly - - name: release - env: - SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} - SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} - PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} - PGP_SECRET: ${{ secrets.PGP_SECRET }} - run: | - echo $PGP_SECRET | base64 --decode | gpg --batch --import 2> /dev/null - git checkout . - git config --global user.email "izanami-release-bot@users.noreply.github.com" - git config --global user.name "izanami-release-bot" - sbt "release release-version ${{ github.event.inputs.releaseVersion }} with-defaults skip-tests" - - name: github release - uses: softprops/action-gh-release@v2 - with: - tag_name: v${{ github.event.inputs.releaseVersion }} - files: | - target/scala-2.13/izanami.jar - - name: Set up Docker Buildx + #- name: release + # env: + # SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} + # SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} + # PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} + # PGP_SECRET: ${{ secrets.PGP_SECRET }} + # run: | + # echo $PGP_SECRET | base64 --decode | gpg --batch --import 2> /dev/null + # git checkout . + # git config --global user.email "izanami-release-bot@users.noreply.github.com" + # git config --global user.name "izanami-release-bot" + # sbt "release release-version ${{ github.event.inputs.releaseVersion }} with-defaults skip-tests" + #- name: github release + # uses: softprops/action-gh-release@v2 + # with: + # tag_name: v${{ github.event.inputs.releaseVersion }} + # files: | + # target/scala-2.13/izanami.jar + - name: Set up Docker Build uses: docker/setup-buildx-action@v3 - name: Login to Docker Hub uses: docker/login-action@v3 @@ -60,6 +60,7 @@ jobs: - name: Build and push uses: docker/build-push-action@v6 with: - context: "{{defaultContext}}:target" + cache-from: | + type=local,src=target/scala-2.13/izanami.jar push: true tags: maif/izanami:${{ github.event.inputs.releaseVersion }} \ No newline at end of file diff --git a/version.sbt b/version.sbt index c39c03f0..1083f2f6 100644 --- a/version.sbt +++ b/version.sbt @@ -1 +1 @@ -ThisBuild / version := "2.4.4-SNAPSHOT" +ThisBuild / version := "2.4.4"