Friends&Foes 2.0.6 for Minecraft 1.19.2 #209
Workflow file for this run
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: "Publish" | |
on: | |
release: | |
types: [ published ] | |
env: | |
VERSION_TYPE: release | |
JAVA_VERSIONS: | | |
Java 17 | |
Java 18 | |
GAME_VERSIONS: | | |
1.19 | |
1.19.1 | |
1.19.2 | |
FABRIC_DEPENDENCIES: | | |
fabric-api | depends | * | |
FABRIC_LOADERS: | | |
fabric | |
quilt | |
FORGE_LOADERS: | | |
forge | |
neoforge | |
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 | |
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: ${{ env.FORGE_LOADERS }} | |
game-versions: ${{ env.GAME_VERSIONS }} | |
name: Friends&Foes ${{ github.ref_name }} (Forge/NeoForge) | |
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: ${{ env.FORGE_LOADERS }} | |
game-versions: ${{ env.GAME_VERSIONS }} | |
name: Friends&Foes ${{ github.ref_name }} (Forge/NeoForge) | |
version: forge-${{ github.ref_name }} | |
java: ${{ env.JAVA_VERSIONS }} | |
retry-attempts: ${{ env.RETRY_ATTEMPTS }} | |
retry-delay: ${{ env.RETRY_DELAY }} | |
version-resolver: ${{ env.VERSION_RESOLVER }} |