We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1b6e4c commit 00a7930Copy full SHA for 00a7930
1 file changed
.github/workflows/build.yml
@@ -1,4 +1,4 @@
1
-name: Build
+name: Build & Release
2
3
on: [push, pull_request, workflow_dispatch]
4
@@ -44,3 +44,28 @@ jobs:
44
name: invistags-mc${{ matrix.version.name }}
45
path: build/libs/*.jar
46
if-no-files-found: error
47
+
48
+ release:
49
+ if: github.event_name == 'push'
50
+ needs: build
51
+ runs-on: ubuntu-latest
52
+ steps:
53
+ - uses: actions/download-artifact@v4
54
+ with:
55
+ path: artifacts
56
57
+ - name: Generate release tag
58
+ id: tag
59
+ run: echo "tag=release-$(date +'%Y%m%d-%H%M%S')" >> "$GITHUB_OUTPUT"
60
61
+ - uses: softprops/action-gh-release@v2
62
63
+ tag_name: ${{ steps.tag.outputs.tag }}
64
+ name: Build ${{ steps.tag.outputs.tag }}
65
+ body: |
66
+ Automated build for MC versions:
67
+ - 1.20.4
68
+ - 1.21.11
69
+ - 26.1.2
70
+ - 26.2
71
+ files: artifacts/**/*.jar
0 commit comments