Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
btwonion committed Aug 1, 2024
1 parent c7500a8 commit 76504df
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 25 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/build-commit.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# Used when a commit is pushed to the repository
# This makes use of caching for faster builds and uploads the resulting artifacts
name: build-commit

on:
Expand Down Expand Up @@ -38,17 +36,9 @@ jobs:
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build with Gradle
run: ./gradlew buildAllVersions --stacktrace
- uses: actions/upload-artifact@v4
uses: Wandalen/wretry.action@master
with:
path: versions/**/build/libs/*.jar

modrinth-description:
runs-on: ubuntu-latest
name: Sync Modrinth description
steps:
- uses: actions/checkout@v4
- uses: funnyboy-roks/[email protected]
command: ./gradlew buildAllVersions --stacktrace
- uses: actions/upload-artifact@v4
with:
auth-token: ${{ secrets.MODRINTH_API_KEY }}
slug: 'telekinesis'
path: versions/**/build/libs/*.jar
20 changes: 20 additions & 0 deletions .github/workflows/readme-modrinth-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: sync-readme

on:
push:
paths:
- "README.md"
branches:
- main
workflow_dispatch:

jobs:
modrinth-description:
runs-on: ubuntu-latest
name: Sync Modrinth description
steps:
- uses: actions/checkout@v4
- uses: funnyboy-roks/[email protected]
with:
auth-token: ${{ secrets.MODRINTH_API_KEY }}
slug: 'telekinesis'
16 changes: 5 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ jobs:
run: chmod +x gradlew
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build with Gradle
uses: Wandalen/wretry.action@master
with:
command: ./gradlew buildAllVersions --stacktrace
- name: Release with Gradle
run: ./gradlew releaseAllVersions postUpdate --stacktrace
env:
Expand All @@ -28,14 +32,4 @@ jobs:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
DISCORD_ROLE_ID: ${{ secrets.DISCORD_ROLE_ID }}
NYON_USERNAME: ${{ secrets.NYON_USERNAME }}
NYON_PASSWORD: ${{ secrets.NYON_PASSWORD }}

modrinth-description:
runs-on: ubuntu-latest
name: Sync Modrinth description
steps:
- uses: actions/checkout@v4
- uses: funnyboy-roks/[email protected]
with:
auth-token: ${{ secrets.MODRINTH_API_KEY }}
slug: 'telekinesis'
NYON_PASSWORD: ${{ secrets.NYON_PASSWORD }}

0 comments on commit 76504df

Please sign in to comment.