Skip to content

Commit 3dfa21f

Browse files
committed
First release of the library
Current available modules: - `:common` - `:item` - `.item:bukkit`
1 parent ea57f9a commit 3dfa21f

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Name of the action
2+
name: Automatic Release
3+
4+
# Event to run on
5+
on:
6+
# Will run on every push in the "main" branch
7+
push:
8+
branches:
9+
- main
10+
11+
permissions:
12+
contents: write
13+
14+
# Jobs that will execute
15+
jobs:
16+
release:
17+
name: Setup Environment, Build JAR and Release Project
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Automatic Release
21+
uses: Fulminazzo/java-automatic-release@v1
22+
with:
23+
java-version: 8
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
REPOSITORY_NAME: ${{ github.event.repository.name }}
27+
# Message specified in the commit
28+
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
29+
- name: Publish Release
30+
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629
31+
with:
32+
arguments: publish
33+
env:
34+
REPO_USERNAME: ${{ secrets.FULMINAZZO_REPO_USERNAME }}
35+
REPO_PASSWORD: ${{ secrets.FULMINAZZO_REPO_TOKEN }}

0 commit comments

Comments
 (0)