This repository has been archived by the owner on Dec 8, 2024. It is now read-only.
Release #134
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: Release | |
on: [workflow_dispatch] | |
permissions: | |
contents: write | |
env: | |
MAVEN_USERNAME: ${{ secrets.MAVEN_NAME }} | |
MAVEN_PASSWORD: ${{ secrets.MAVEN_TOKEN }} | |
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} | |
ENVIRONMENT: publishing | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
container: | |
image: eclipse-temurin:17-jdk | |
options: --user root | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- uses: actions/setup-java@v2 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Clean caches | |
run: ./gradlew clean --stacktrace | |
- name: Upload releases | |
run: ./gradlew build github curseforge modrinth publish --stacktrace |