Skip to content

Commit

Permalink
test removal of set-output
Browse files Browse the repository at this point in the history
  • Loading branch information
boiscljo committed Jan 23, 2024
1 parent ffc6f09 commit 9946415
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 26 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/gradle-publish-1.5.7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,18 @@ jobs:
id: vars
shell: bash
run: |
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
echo "{branch}=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_STATE
echo "{sha_short}=$(git rev-parse --short HEAD)" >> $GITHUB_STATE
- name: Build with Gradle
run: ./gradlew
env:
OPTIMIZE_FOR_CI_CD: "1"
BUILD_NUMBER: ${{ steps.calculated_build_number.outputs.build_n }}
BUILD_NUMBER: ${{ github.run_id }}
GITHUB_ACTIONS_URL: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
GITHUB_COMMIT_MESSAGE: "${{ github.event.head_commit.message }}"
- name: Upload the final artifact
uses: actions/upload-artifact@v4
with:
path: plugin/build/libs/SBA-${{ steps.read_property.outputs.value }}-all.jar
- uses: ncipollo/release-action@v1
with:
artifacts: "LICENSE,plugin/build/libs*.jar"
tag: ${{ steps.read_property.outputs.value }}.${{ steps.vars.outputs.sha_short }}
artifacts: "LICENSE,plugin/build/libs/*.jar"
tag: ${{ steps.read_property.outputs.value }}
allowUpdates: true
prerelease: true
19 changes: 6 additions & 13 deletions .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,15 @@ jobs:
run: ./gradlew
env:
OPTIMIZE_FOR_CI_CD: "1"
BUILD_NUMBER: ${{ steps.calculated_build_number.outputs.build_n }}
BUILD_NUMBER: ${{ github.run_id }}
GITHUB_ACTIONS_URL: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
GITHUB_COMMIT_MESSAGE: "${{ github.event.head_commit.message }}"
- name: Upload the final artifact
uses: actions/upload-artifact@v4
- uses: ncipollo/release-action@v1
with:
path: plugin/build/libs/SBA-${{ steps.read_property.outputs.value }}-all.jar
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: false
title: "Release Build ${{ steps.read_property.outputs.value }}"
files: |
LICENSE
plugin/build/libs/*.jar
artifacts: "LICENSE,plugin/build/libs/*.jar"
tag: ${{ steps.read_property.outputs.value }}
allowUpdates: true
prerelease: true

# - name: Upload Release Asset
# id: upload-release-asset
Expand Down
3 changes: 0 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,6 @@ subprojects {
maven {
url = uri('https://repo.dmulloy2.net/nexus/repository/public/')
}
maven {
url = uri('https://repo.screamingsandals.org/public')
}
maven {
url = uri('https://repo.screamingsandals.org/releases')
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ KYORI_ADVENTURE_PLATFORM_BUKKIT_VERSION=4.11.0
PAPI_VERSION=2.11.1
SCREAMINGLIB_VERSION=2.0.3-SNAPSHOT
SIMPLEINVENTORIES_VERSION=2.0.3-SNAPSHOT
SCREAMING_PLUGIN_BUILDER_VERSION=1.0.76
SCREAMING_PLUGIN_BUILDER_VERSION=1.0.77
org.gradle.jvmargs='-Dfile.encoding=UTF-8'
BUILDCONFIG_VERSION=3.0.2
org.gradle.jvmargs=-Xmx1024M

0 comments on commit 9946415

Please sign in to comment.