diff --git a/.github/workflows/build_testnet_mainnet.yml b/.github/workflows/build_testnet_mainnet.yml index 6d2663b..491143e 100644 --- a/.github/workflows/build_testnet_mainnet.yml +++ b/.github/workflows/build_testnet_mainnet.yml @@ -2,7 +2,7 @@ name: Build and Push Testnet and Mainnet Images on: push: - branches: [ main ] + branches: [main] # also allow manual runs workflow_dispatch: @@ -23,17 +23,17 @@ jobs: id: version uses: PaulHatch/semantic-version@v5.4.0 with: - tag_prefix: 'v' - major_pattern: '(MAJOR)' - minor_pattern: '(feat|feature)' - version_format: '${major}.${minor}.${patch}' + tag_prefix: "v" + major_pattern: "(MAJOR)" + minor_pattern: "(feat|feature)" + version_format: "${major}.${minor}.${patch}" build: runs-on: ubuntu-latest needs: [generate-version] permissions: - contents: read + contents: write packages: write steps: @@ -64,6 +64,7 @@ jobs: ratio1/explorer:testnet - name: Build & Push Mainnet Image + id: build_mainnet_image uses: docker/build-push-action@v5 with: context: . @@ -77,4 +78,16 @@ jobs: tags: | ratio1/explorer:mainnet - + - name: Create GitHub Release + uses: softprops/action-gh-release@v2 + with: + tag_name: ${{ needs.generate-version.outputs.version_tag }} + name: v${{ needs.generate-version.outputs.version }} + body: | + Docker image details: + - tag: ratio1/dapp:mainnet + - digest: ${{ steps.build_mainnet_image.outputs.digest }} + draft: false + prerelease: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}