Skip to content

Friends&Foes 2.0.7 for Minecraft 1.20.2 #218

Friends&Foes 2.0.7 for Minecraft 1.20.2

Friends&Foes 2.0.7 for Minecraft 1.20.2 #218

Workflow file for this run

name: "Publish"
on:
release:
types: [ published ]
env:
VERSION_TYPE: release
JAVA_VERSIONS: |
Java 17
Java 18
GAME_VERSIONS: |
1.20.2
FABRIC_DEPENDENCIES: |
fabric-api | depends | *
FABRIC_LOADERS: |
fabric
quilt
RETRY_ATTEMPTS: 3
RELAY_DELAY: 10000
VERSION_RESOLVER: latest
jobs:
build:
runs-on: ubuntu-latest
name: "Build"
timeout-minutes: 15
steps:
- name: "Checkout repository"
uses: actions/[email protected]
with:
fetch-depth: 0
- name: "Setup environment"
uses: ./.github/actions/setup-environment
- name: "Build with gradle"
run: ./gradlew build
- name: "Capture build artifacts"
uses: actions/upload-artifact@v3
with:
name: "friends-and-foes"
path: |
fabric/build/libs/friendsandfoes-fabric-${{ github.ref_name }}.jar
forge/build/libs/friendsandfoes-forge-${{ github.ref_name }}.jar
neoforge/build/libs/friendsandfoes-neoforge-${{ github.ref_name }}.jar
LICENSE.txt
publish-license-to-release:
needs: build
runs-on: ubuntu-latest
name: "Publish license to GitHub"
timeout-minutes: 15
steps:
- name: "Download artifacts"
uses: actions/download-artifact@v3
with:
name: "friends-and-foes"
- name: "Publish license to GitHub"
uses: AButler/[email protected]
with:
files: 'LICENSE.txt'
repo-token: ${{ secrets.GITHUB_TOKEN }}
publish-fabric-to-github:
needs: build
runs-on: ubuntu-latest
name: "Publish Fabric to GitHub"
timeout-minutes: 15
steps:
- name: "Download artifacts"
uses: actions/download-artifact@v3
with:
name: "friends-and-foes"
- name: "Publish Fabric to GitHub"
uses: AButler/[email protected]
with:
files: fabric/build/libs/friendsandfoes-fabric-${{ github.ref_name }}.jar
repo-token: ${{ secrets.GITHUB_TOKEN }}
publish-fabric-to-curseforge:
needs: build
runs-on: ubuntu-latest
name: "Publish Fabric to CurseForge"
timeout-minutes: 15
steps:
- name: "Download artifacts"
uses: actions/download-artifact@v3
with:
name: "friends-and-foes"
- name: "Publish Fabric to CurseForge"
uses: Kir-Antipov/[email protected]
with:
curseforge-id: 551364
curseforge-token: ${{ secrets.CURSEFORGE_RELEASE_TOKEN }}
files-primary: fabric/build/libs/friendsandfoes-fabric-${{ github.ref_name }}.jar
version-type: ${{ env.VERSION_TYPE }}
loaders: ${{ env.FABRIC_LOADERS }}
game-versions: ${{ env.GAME_VERSIONS }}
name: Friends&Foes ${{ github.ref_name }} (Fabric/Quilt)
dependencies: ${{ env.FABRIC_DEPENDENCIES }}
java: ${{ env.JAVA_VERSIONS }}
retry-attempts: ${{ env.RETRY_ATTEMPTS }}
retry-delay: ${{ env.RETRY_DELAY }}
version-resolver: ${{ env.VERSION_RESOLVER }}
publish-fabric-to-modrinth:
needs: build
runs-on: ubuntu-latest
name: "Publish Fabric to Modrinth"
timeout-minutes: 15
steps:
- name: "Download artifacts"
uses: actions/download-artifact@v3
with:
name: "friends-and-foes"
- name: "Publish Fabric to Modrinth"
uses: Kir-Antipov/[email protected]
with:
modrinth-id: POQ2i9zu
modrinth-featured: true
modrinth-unfeature-mode: version-intersection
modrinth-token: ${{ secrets.MODRINTH_RELEASE_TOKEN }}
files-primary: fabric/build/libs/friendsandfoes-fabric-${{ github.ref_name }}.jar
version-type: ${{ env.VERSION_TYPE }}
loaders: ${{ env.FABRIC_LOADERS }}
game-versions: ${{ env.GAME_VERSIONS }}
name: Friends&Foes ${{ github.ref_name }} (Fabric/Quilt)
version: fabric-${{ github.ref_name }}
dependencies: ${{ env.FABRIC_DEPENDENCIES }}
java: ${{ env.JAVA_VERSIONS }}
retry-attempts: ${{ env.RETRY_ATTEMPTS }}
retry-delay: ${{ env.RETRY_DELAY }}
version-resolver: ${{ env.VERSION_RESOLVER }}
publish-forge-to-github:
needs: build
runs-on: ubuntu-latest
name: "Publish Forge to GitHub"
timeout-minutes: 15
steps:
- name: "Download artifacts"
uses: actions/download-artifact@v3
with:
name: "friends-and-foes"
- name: "Publish Forge to GitHub"
uses: AButler/[email protected]
with:
files: forge/build/libs/friendsandfoes-forge-${{ github.ref_name }}.jar
repo-token: ${{ secrets.GITHUB_TOKEN }}
publish-forge-to-curseforge:
needs: build
runs-on: ubuntu-latest
name: "Publish Forge to CurseForge"
timeout-minutes: 15
steps:
- name: "Download artifacts"
uses: actions/download-artifact@v3
with:
name: "friends-and-foes"
- name: "Publish Forge to CurseForge"
uses: Kir-Antipov/[email protected]
with:
curseforge-id: 602059
curseforge-token: ${{ secrets.CURSEFORGE_RELEASE_TOKEN }}
files-primary: forge/build/libs/friendsandfoes-forge-${{ github.ref_name }}.jar
version-type: ${{ env.VERSION_TYPE }}
loaders: "forge"
game-versions: ${{ env.GAME_VERSIONS }}
name: Friends&Foes ${{ github.ref_name }} (Forge)
java: ${{ env.JAVA_VERSIONS }}
retry-attempts: ${{ env.RETRY_ATTEMPTS }}
retry-delay: ${{ env.RETRY_DELAY }}
version-resolver: ${{ env.VERSION_RESOLVER }}
publish-forge-to-modrinth:
needs: build
runs-on: ubuntu-latest
name: "Publish Forge to Modrinth"
timeout-minutes: 15
steps:
- name: "Download artifacts"
uses: actions/download-artifact@v3
with:
name: "friends-and-foes"
- name: "Publish Forge to Modrinth"
uses: Kir-Antipov/[email protected]
with:
modrinth-id: BOCJKD49
modrinth-featured: true
modrinth-unfeature-mode: version-intersection
modrinth-token: ${{ secrets.MODRINTH_RELEASE_TOKEN }}
files-primary: forge/build/libs/friendsandfoes-forge-${{ github.ref_name }}.jar
version-type: ${{ env.VERSION_TYPE }}
loaders: "forge"
game-versions: ${{ env.GAME_VERSIONS }}
name: Friends&Foes ${{ github.ref_name }} (Forge)
version: forge-${{ github.ref_name }}
java: ${{ env.JAVA_VERSIONS }}
retry-attempts: ${{ env.RETRY_ATTEMPTS }}
retry-delay: ${{ env.RETRY_DELAY }}
version-resolver: ${{ env.VERSION_RESOLVER }}
publish-neoforge-to-github:
needs: build
runs-on: ubuntu-latest
name: "Publish NeoForge to GitHub"
timeout-minutes: 15
steps:
- name: "Download artifacts"
uses: actions/download-artifact@v3
with:
name: "friends-and-foes"
- name: "Publish NeoForge to GitHub"
uses: AButler/[email protected]
with:
files: neoforge/build/libs/friendsandfoes-neoforge-${{ github.ref_name }}.jar
repo-token: ${{ secrets.GITHUB_TOKEN }}
publish-neoforge-to-curseforge:
needs: build
runs-on: ubuntu-latest
name: "Publish NeoForge to CurseForge"
timeout-minutes: 15
steps:
- name: "Download artifacts"
uses: actions/download-artifact@v3
with:
name: "friends-and-foes"
- name: "Publish NeoForge to CurseForge"
uses: Kir-Antipov/[email protected]
with:
curseforge-id: 602059
curseforge-token: ${{ secrets.CURSEFORGE_RELEASE_TOKEN }}
files-primary: neoforge/build/libs/friendsandfoes-neoforge-${{ github.ref_name }}.jar
version-type: ${{ env.VERSION_TYPE }}
loaders: "neoforge"
game-versions: ${{ env.GAME_VERSIONS }}
name: Friends&Foes ${{ github.ref_name }} (NeoForge)
java: ${{ env.JAVA_VERSIONS }}
retry-attempts: ${{ env.RETRY_ATTEMPTS }}
retry-delay: ${{ env.RETRY_DELAY }}
version-resolver: ${{ env.VERSION_RESOLVER }}
publish-neoforge-to-modrinth:
needs: build
runs-on: ubuntu-latest
name: "Publish NeoForge to Modrinth"
timeout-minutes: 15
steps:
- name: "Download artifacts"
uses: actions/download-artifact@v3
with:
name: "friends-and-foes"
- name: "Publish NeoForge to Modrinth"
uses: Kir-Antipov/[email protected]
with:
modrinth-id: BOCJKD49
modrinth-featured: true
modrinth-unfeature-mode: version-intersection
modrinth-token: ${{ secrets.MODRINTH_RELEASE_TOKEN }}
files-primary: neoforge/build/libs/friendsandfoes-neoforge-${{ github.ref_name }}.jar
version-type: ${{ env.VERSION_TYPE }}
loaders: "neoforge"
game-versions: ${{ env.GAME_VERSIONS }}
name: Friends&Foes ${{ github.ref_name }} (NeoForge)
version: neoforge-${{ github.ref_name }}
java: ${{ env.JAVA_VERSIONS }}
retry-attempts: ${{ env.RETRY_ATTEMPTS }}
retry-delay: ${{ env.RETRY_DELAY }}
version-resolver: ${{ env.VERSION_RESOLVER }}