Skip to content

Commit

Permalink
fix: release
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitFicus committed Jul 15, 2024
1 parent deea1a0 commit ac8eab5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 21 deletions.
41 changes: 21 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]"
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 "[email protected]"
# 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
Expand All @@ -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 }}
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ThisBuild / version := "2.4.4-SNAPSHOT"
ThisBuild / version := "2.4.4"

0 comments on commit ac8eab5

Please sign in to comment.