From 923af4098a839ad25d34bff965f552273cc98df5 Mon Sep 17 00:00:00 2001 From: Benoni Jiang Date: Sun, 25 Oct 2020 23:49:10 +0800 Subject: [PATCH] modify gradle.yml --- .github/workflows/gradle.yml | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 3300c2e..cb2d18e 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -35,22 +35,22 @@ jobs: # name: openTCS-4.18.0-SNAPSHOT-bin # path: build/distributions/openTCS-4.18.0-SNAPSHOT-bin.zip - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - draft: false - prerelease: false + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: false - name: Upload Release Asset - id: upload-release-asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps - asset_path: ./build/distributions/openTCS-4.18.0-SNAPSHOT-bin.zip - asset_name: openTCS-4.18.0-SNAPSHOT-bin.zip - asset_content_type: application/zip \ No newline at end of file + id: upload-release-asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps + asset_path: ./build/distributions/openTCS-4.18.0-SNAPSHOT-bin.zip + asset_name: openTCS-4.18.0-SNAPSHOT-bin.zip + asset_content_type: application/zip \ No newline at end of file