mirror of
https://github.com/ViaVersion/ViaFabric.git
synced 2024-11-25 12:15:14 +01:00
make actions publish manual
This commit is contained in:
parent
45f1400328
commit
710bae8ff5
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
@ -23,10 +23,7 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-gradle-
|
${{ runner.os }}-gradle-
|
||||||
- name: build
|
- name: build
|
||||||
env:
|
run: ./gradlew build
|
||||||
CURSEFORGE_API_KEY: ${{ secrets.CREEPER_CF }}
|
|
||||||
MODRINTH_TOKEN: $${ secrets.MODRINTH_TOKEN }
|
|
||||||
run: ./gradlew
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: Artifacts
|
name: Artifacts
|
||||||
|
25
.github/workflows/publish.yml
vendored
Normal file
25
.github/workflows/publish.yml
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
# Automatically build the project and run any configured tests for every push
|
||||||
|
# and submitted pull request. This can help catch issues that only occur on
|
||||||
|
# certain platforms or Java versions, and provides a first line of defence
|
||||||
|
# against bad commits.
|
||||||
|
|
||||||
|
name: publish
|
||||||
|
on: [workflow_dispatch] # Manual trigger
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-java@v1
|
||||||
|
with:
|
||||||
|
java-version: 17
|
||||||
|
- name: build and publish
|
||||||
|
env:
|
||||||
|
CURSEFORGE_API_KEY: ${{ secrets.CREEPER_CF }}
|
||||||
|
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
|
||||||
|
run: ./gradlew curseforge modrinth
|
||||||
|
- uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: Artifacts
|
||||||
|
path: build/libs/
|
@ -222,10 +222,4 @@ modrinth {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getBranch() == "main"
|
defaultTasks("clean", "build")
|
||||||
&& ENV.CURSEFORGE_API_KEY && !ENV.CURSEFORGE_API_KEY.isEmpty()
|
|
||||||
&& ENV.MODRINTH_TOKEN && !ENV.MODRINTH_TOKEN.isEmpty()) {
|
|
||||||
defaultTasks("clean", "build", "curseforge", "modrinth")
|
|
||||||
} else {
|
|
||||||
defaultTasks("clean", "build")
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user