Updated links and removed partial documentation from README.md (#274) #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to Stable Branch | |
on: | |
push: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: maven | |
- name: Run the Maven build for ImprovedFactionsBase | |
working-directory: ./improved-factions-base | |
run: mvn clean package | |
- name: Extract version from pom.xml | |
id: extract_version | |
working-directory: ./improved-factions-base | |
run: echo "VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV | |
- name: Publish to Modrinth | |
uses: Kir-Antipov/mc-publish@v3.3 | |
with: | |
modrinth-id: KqTWR5Ji | |
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | |
version: ${{ env.VERSION }}-stable | |
version-type: release | |
github-tag: ${{ env.VERSION }}-stable | |
github-generate-changelog: true | |
github-prerelease: false | |
github-commitish: main | |
github-discussion: Announcements | |
github-token: ${{ secrets.GB_TOKEN }} | |
loaders: | | |
bukkit | |
purpur | |
paper | |
spigot | |
game-versions: | | |
(1.18,1.21] | |
files: | | |
improved-factions-base/target/ImprovedFactions-*.jar | |
retry-attempts: 2 | |
retry-delay: 10000 | |
fail-mode: fail |