19
.github/workflows/release.yml
vendored
19
.github/workflows/release.yml
vendored
@@ -3,11 +3,6 @@ name: Release
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "ver/*", "dev/*", "feat/**/*" ]
|
branches: [ "ver/*", "dev/*", "feat/**/*" ]
|
||||||
paths:
|
|
||||||
- "patches/server/**.patch"
|
|
||||||
- "patches/api/**.patch"
|
|
||||||
- "gradle.properties"
|
|
||||||
- "release.yml"
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
@@ -81,6 +76,13 @@ jobs:
|
|||||||
- name: Create Mojmap Jar
|
- name: Create Mojmap Jar
|
||||||
run: ./gradlew createMojmapPaperclipJar --stacktrace
|
run: ./gradlew createMojmapPaperclipJar --stacktrace
|
||||||
|
|
||||||
|
- name: Publish Packages
|
||||||
|
if: startsWith(github.ref_name, 'ver/') || startsWith(github.ref_name, 'dev/')
|
||||||
|
run: |
|
||||||
|
export GITHUB_USERNAME=${{ env.ORG_NAME }}
|
||||||
|
export GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
|
||||||
|
./gradlew publish --stacktrace
|
||||||
|
|
||||||
- name: Update Javadoc
|
- name: Update Javadoc
|
||||||
if: startsWith(github.ref_name, 'ver/') || startsWith(github.ref_name, 'dev/')
|
if: startsWith(github.ref_name, 'ver/') || startsWith(github.ref_name, 'dev/')
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
@@ -105,13 +107,6 @@ jobs:
|
|||||||
git add . && git commit -m "Update Javadocs"
|
git add . && git commit -m "Update Javadocs"
|
||||||
git push
|
git push
|
||||||
|
|
||||||
- name: Publish Packages
|
|
||||||
if: startsWith(github.ref_name, 'ver/') || startsWith(github.ref_name, 'dev/')
|
|
||||||
run: |
|
|
||||||
export GITHUB_USERNAME=${{ env.ORG_NAME }}
|
|
||||||
export GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
|
|
||||||
./gradlew publish --stacktrace
|
|
||||||
|
|
||||||
- name: Release Artifacts
|
- name: Release Artifacts
|
||||||
if: startsWith(github.ref_name, 'ver/')
|
if: startsWith(github.ref_name, 'ver/')
|
||||||
uses: softprops/action-gh-release@v0.1.15
|
uses: softprops/action-gh-release@v0.1.15
|
||||||
|
|||||||
Reference in New Issue
Block a user