Skip to content

Commit

Permalink
Replace workflow output calls (#421)
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwarDDay authored Feb 29, 2024
1 parent 8f1e14f commit 229b1af
Showing 1 changed file with 9 additions and 37 deletions.
46 changes: 9 additions & 37 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

- name: Set VCS tag
id: variables
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
run: echo "tag=${GITHUB_REF#refs/*/}"

- name: set up JDK
uses: actions/[email protected]
Expand All @@ -45,45 +45,17 @@ jobs:

- name: create Github release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
token: ${{ secrets.GITHUB_TOKEN }}
name: Release ${{ github.ref }}
body: ${{ steps.changelog.outputs.changelog }}
draft: true
prerelease: false

- name: Upload sources
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./library/build/libs/library-sources.jar
asset_name: library-sources.jar
asset_content_type: application/jar

- name: Upload javadoc
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./library/build/libs/library-javadoc.jar
asset_name: library-javadoc.jar
asset_content_type: application/jar

- name: Upload library
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./library/build/outputs/aar/library-release.aar
asset_name: library-release.aar
asset_content_type: application/jar
files: |
./library/build/libs/library-sources.jar
./library/build/libs/library-javadoc.jar
./library/build/outputs/aar/library-release.aar
docs:
runs-on: ubuntu-22.04
Expand All @@ -96,7 +68,7 @@ jobs:
uses: actions/[email protected]
with:
distribution: 'adopt'
java-version: 11
java-version: 17

- name: Build html documentation
run: ./gradlew :library:dokkaHtml
Expand Down

0 comments on commit 229b1af

Please sign in to comment.