Skip to content

Commit

Permalink
Add automatic releases
Browse files Browse the repository at this point in the history
  • Loading branch information
DrexHD committed Aug 27, 2023
1 parent e0fa381 commit 50256d2
Show file tree
Hide file tree
Showing 4 changed files with 110 additions and 1 deletion.
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: release

on:
workflow_dispatch:
push:
tags:
- 'v*.*.*-1.**'

jobs:
upload:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'temurin'
- name: Grant execute permission to gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Set up Environment Variables
run: |
echo "MINECRAFT_VERSION="$(grep 'minecraft_version' gradle.properties | cut -f2- -d=)"" >> $GITHUB_ENV
echo "MOD_VERSION="$(grep 'mod_version' gradle.properties | cut -f2- -d=)"" >> $GITHUB_ENV
- name: Install changelog parser
uses: taiki-e/install-action@parse-changelog
- name: Parse changelog
run: parse-changelog CHANGELOG.md ${{ env.MOD_VERSION }} > changes.md
- uses: Kir-Antipov/mc-publish@v3.3
with:
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
modrinth-dependencies: |
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
changelog-file: changes.md
name: Vanilla Permissions ${{ env.MOD_VERSION }} for ${{ env.MINECRAFT_VERSION }}
files: build/libs/!(*-@(dev|sources|shadow)).jar
60 changes: 60 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [0.2.2] - 2023-08-27
### Removed
- Multi-version residue

### Fixed
- Using wrong fallback command node requirement

## [0.2.1] - 2023-07-01
### Fixed
- Checking permissions to early

## [0.2.0] - 2023-06-07
### Removed
- Multiversion support
### Fixed
- `minecraft.gamemode.<gametype>` permission in 1.19.3 and later
### Changed
- Operator block permissions
- Updated to 1.20

## [0.1.5] - 2023-03-19
### Fixed
- Registry version detection

## [0.1.4] - 2023-02-06
### Added
- Execute command modifiers

### Fixed
- Version range check
- Incompatibility with *ShetiPhianCore*

## [0.1.3] - 2022-12-13
### Changed
- Updated to 1.19.3

### Fixed
- `minecraft.adminbroadcast.receive` not working

## [0.1.2] - 2022-11-14
### Fixed
- Whitelisted players with `minecraft.bypass.whitelist` set to false are not able to join

### Changed
- Improved gamemode selector

## [0.1.1] - 2022-10-22
### Changed
- Use API for offline permissions

## [0.1.0] - 2022-10-07
Init
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ org.gradle.jvmargs=-Xmx4G
minecraft_version=1.20.1
loader_version=0.14.21
# Mod Properties
mod_version=0.2.1
mod_version=0.2.2
maven_group=me.drex
archives_base_name=vanilla-permissions
# Dependencies
Expand Down
9 changes: 9 additions & 0 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@
"com.llamalad7.mixinextras.MixinExtrasBootstrap::init"
]
},
"custom": {
"modmanager": {
"curseforge": 686569,
"modrinth": "fdZkP5Bb"
},
"mc-publish": {
"quilt": true
}
},
"mixins": [
"vanilla-permissions.mixins.json"
],
Expand Down

0 comments on commit 50256d2

Please sign in to comment.