mirror of
https://github.com/funkemunky/AntiVPN.git
synced 2026-05-31 09:31:54 +00:00
Updating workflows to handle new build structure, removing maven workflows
This commit is contained in:
@@ -17,13 +17,13 @@ jobs:
|
||||
with:
|
||||
gradle-version: 'wrapper'
|
||||
- name: Build
|
||||
run: gradle build --no-daemon
|
||||
run: ./gradlew build --no-daemon
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Get Version Number from Gradle
|
||||
id: get_version
|
||||
run: |
|
||||
VERSION=$(gradle properties -q | awk -F': ' '/^version:/ {print $2; exit}')
|
||||
VERSION=$(./gradlew properties -q | awk -F': ' '/^version:/ {print $2; exit}')
|
||||
echo "VERSION=$VERSION" >> "$GITHUB_ENV"
|
||||
- name: Extract latest CHANGELOG entry
|
||||
id: changelog
|
||||
@@ -49,6 +49,6 @@ jobs:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: ./Universal/build/libs/AntiVPN-${{ env.VERSION }}-universal.jar
|
||||
asset_path: ./build/libs/AntiVPN-${{ env.VERSION }}-universal.jar
|
||||
asset_name: AntiVPN-v${{ env.VERSION }}.jar
|
||||
asset_content_type: application/java-archive
|
||||
|
||||
@@ -22,14 +22,14 @@ jobs:
|
||||
with:
|
||||
gradle-version: 'wrapper'
|
||||
- name: Build
|
||||
run: gradle build --no-daemon
|
||||
run: ./gradlew build --no-daemon
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Upload AntiVPN
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: AntiVPN-Universal
|
||||
path: Universal/build/libs/AntiVPN-*-universal.jar
|
||||
path: build/libs/AntiVPN-*-universal.jar
|
||||
- name: Upload Sponge plugin
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
||||
@@ -17,6 +17,6 @@ jobs:
|
||||
with:
|
||||
gradle-version: 'wrapper'
|
||||
- name: Build
|
||||
run: gradle build --no-daemon
|
||||
run: ./gradlew build --no-daemon
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user