From 3356d59e714fbd1ea6727eb44fca31c711b222e4 Mon Sep 17 00:00:00 2001 From: Elmir Shamsutdinov Date: Tue, 11 Aug 2026 11:03:45 +0300 Subject: [PATCH 1/2] added release action --- .github/workflows/release.yaml | 51 ++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 00000000..de704604 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,51 @@ +name: Release + +on: + push: + tags: + - 'v*.*.*' + +jobs: + build-and-release: + name: Build and Release + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + - name: Checkout code + uses: actions/checkout@v6 + + - name: Set up JDK 8 + uses: actions/setup-java@v5 + with: + java-version: '8' + distribution: 'temurin' + cache: maven + + - name: set version + run: echo "RELEASE_VERSION=$(echo ${GITHUB_REF#refs/*/} | cut -c 2-)" >> $GITHUB_ENV + + - name: Build Linux Version + run: mvn clean package -B -ntp -DskipTests -P Linux-64 + + - name: Build Windows Version + run: mvn package -B -ntp -DskipTests -P Windows-64 + + - name: Build macOS Version + run: mvn package -B -ntp -DskipTests -P Macosx-64 + + - name: Create Release + id: create_release + uses: softprops/action-gh-release@718ea10b132b3b2eba29c1007bb80653f286566b #v.3.0.1 + with: + name: Release ${{ github.ref_name }} + draft: false + prerelease: false + files: | + ${{ github.workspace }}/target/pgsqlblocks-${{ env.RELEASE_VERSION }}-Linux-64.jar + ${{ github.workspace }}/target/pgsqlblocks-${{ env.RELEASE_VERSION }}-Windows-64.jar + ${{ github.workspace }}/target/pgsqlblocks-${{ env.RELEASE_VERSION }}-Macosx-64.jar + generate_release_notes: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 56435b7b00f74ed37cd3c43ca6688ad79216729f Mon Sep 17 00:00:00 2001 From: Elmir Shamsutdinov Date: Tue, 11 Aug 2026 11:07:37 +0300 Subject: [PATCH 2/2] updated action --- .github/workflows/release.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index de704604..183b71cc 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -46,6 +46,5 @@ jobs: ${{ github.workspace }}/target/pgsqlblocks-${{ env.RELEASE_VERSION }}-Linux-64.jar ${{ github.workspace }}/target/pgsqlblocks-${{ env.RELEASE_VERSION }}-Windows-64.jar ${{ github.workspace }}/target/pgsqlblocks-${{ env.RELEASE_VERSION }}-Macosx-64.jar - generate_release_notes: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file