Skip to content

Commit

Permalink
Merge pull request #1 from AvionBlock/dev
Browse files Browse the repository at this point in the history
Update workflows
  • Loading branch information
AlphaMSq authored Nov 1, 2024
2 parents 512f64d + 2428f80 commit 09e8b91
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 38 deletions.
33 changes: 16 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,23 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '17'
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: "adopt"
java-version: "17"

- name: Make gradlew executable
run: chmod +x gradlew

- name: Build with Gradle
run: ./gradlew build
- name: Make gradlew executable
run: chmod +x gradlew

- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: geyser-voice-artifact
path: build/libs/
- name: Build with Gradle
run: ./gradlew build

- name: Archive artifacts
uses: actions/upload-artifact@v3
with:
name: geyser-voice-artifact
path: build/libs/
42 changes: 21 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ on:
inputs:
tag:
required: true
description: 'Tag'
description: "Tag"
status:
required: true
description: 'Status (beta, stable)'
description: "Status (beta, stable)"

env:
VERSION: ${{ github.event.inputs.tag }}-${{ github.event.inputs.status }}
Expand All @@ -18,26 +18,26 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: "adopt"
java-version: "17"

- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '17'
- name: Make gradlew executable
run: chmod +x gradlew

- name: Make gradlew executable
run: chmod +x gradlew

- name: Build with Gradle
run: ./gradlew build -PVERSION="${{ env.VERSION }}"
- name: Build with Gradle
run: ./gradlew build -PVERSION="${{ env.VERSION }}"

- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: geyser-voice-artifact
path: build/libs/
- name: Archive artifacts
uses: actions/upload-artifact@v3
with:
name: geyser-voice-artifact
path: build/libs/

publish_release:
name: Publish release
Expand All @@ -46,13 +46,13 @@ jobs:

permissions:
contents: write

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Download artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: geyser-voice-artifact
path: build/libs/
Expand Down

0 comments on commit 09e8b91

Please sign in to comment.