Update release thing.
This commit is contained in:
parent
7d6d59d544
commit
0c61472b89
|
@ -1,15 +1,14 @@
|
||||||
name: Make Release
|
name: Make Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
create:
|
push:
|
||||||
branches: ["main"]
|
|
||||||
tags: ["v*"]
|
tags: ["v*"]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
@ -37,13 +36,14 @@ jobs:
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
name: MaterialsExtractor ${{steps.get_version.outputs.tag_version}}
|
name: MaterialsExtractor ${{steps.get_version.outputs.tag_version}}
|
||||||
|
files: ${{steps.build.outputs.asset_path}}
|
||||||
|
|
||||||
- name: Upload Asset
|
# - name: Upload Asset
|
||||||
uses: actions/upload-release-asset@v1
|
# uses: actions/upload-release-asset@v1
|
||||||
env:
|
# env:
|
||||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
# GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||||
with:
|
# with:
|
||||||
upload_url: ${{steps.create_release.outputs.upload_url}}
|
# upload_url: ${{steps.create_release.outputs.upload_url}}
|
||||||
asset_name: materials-extractor-${{steps.get_version.outputs.tag_version}}.jar
|
# asset_name: materials-extractor-${{steps.get_version.outputs.tag_version}}.jar
|
||||||
asset_path: ${{steps.build.outputs.asset_path}}
|
# asset_path: ${{steps.build.outputs.asset_path}}
|
||||||
asset_content_type: application/java-archive
|
# asset_content_type: application/java-archive
|
||||||
|
|
Loading…
Reference in New Issue