From 0c61472b89c779b6263a129202f8faf49d90e849 Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Fri, 23 Jun 2023 21:02:35 +0200 Subject: [PATCH] Update release thing. --- .github/workflows/make-release.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/make-release.yml b/.github/workflows/make-release.yml index 713a12c..8df6a1c 100644 --- a/.github/workflows/make-release.yml +++ b/.github/workflows/make-release.yml @@ -1,15 +1,14 @@ name: Make Release on: - create: - branches: ["main"] + push: tags: ["v*"] jobs: build: runs-on: ubuntu-latest permissions: - contents: read + contents: write steps: - name: Checkout @@ -37,13 +36,14 @@ jobs: uses: softprops/action-gh-release@v1 with: name: MaterialsExtractor ${{steps.get_version.outputs.tag_version}} + files: ${{steps.build.outputs.asset_path}} - - name: Upload Asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - with: - upload_url: ${{steps.create_release.outputs.upload_url}} - asset_name: materials-extractor-${{steps.get_version.outputs.tag_version}}.jar - asset_path: ${{steps.build.outputs.asset_path}} - asset_content_type: application/java-archive +# - name: Upload Asset +# uses: actions/upload-release-asset@v1 +# env: +# GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} +# with: +# upload_url: ${{steps.create_release.outputs.upload_url}} +# asset_name: materials-extractor-${{steps.get_version.outputs.tag_version}}.jar +# asset_path: ${{steps.build.outputs.asset_path}} +# asset_content_type: application/java-archive