diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..8f949e8 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,36 @@ +name: release + +on: + release: + types: + - published + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 17 + + - name: Make gradlew executable + run: chmod +x ./gradlew + + - name: Build artifacts + run: ./gradlew clean build + + - name: Upload assets to GitHub, Modrinth and CurseForge + uses: Kir-Antipov/mc-publish@v3.2 + with: + modrinth-id: mEPmyd7J + modrinth-featured: false + modrinth-token: ${{ secrets.MODRINTH_TOKEN }} + + curseforge-id: 483111 + curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} + + github-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/README.md b/README.md index 09dcb45..1ad3673 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Head Index also supports setting an item or economy (Common Economy API) cost fo ### Config `config/head-index.json` -```json +```json5 { "permissionLevel": 2, // The default permission level for the commands. Set to 0 to allow all players access "economyType": "FREE", // The type of economy to use. Set to FREE to disable economy, ITEM to use an item, or ECONOMY to use an economy currency