Skip to content

Commit

Permalink
Add release action
Browse files Browse the repository at this point in the history
Fix red
  • Loading branch information
PotatoPresident committed Feb 19, 2023
1 parent f2dd287 commit a98890b
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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 }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a98890b

Please sign in to comment.