Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
m0rkeulv committed Apr 23, 2023
1 parent 829b858 commit 43c2329
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/prerelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- name: Get short SHA
id: short_sha
run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"
run: echo "::name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_OUTPUT

- name: Create Pre-release
id: create_release
Expand Down Expand Up @@ -85,12 +85,25 @@ jobs:
run: ./gradlew clean test buildPlugin verifyPlugin


# Upload artifact as a release asset
- name: Upload Release Asset
if: ${{ inputs.tagName || github.event.release.tag_name }}
- name: Find assets
id: find_assets
run: |
ARTIFACT_PATHNAME=$(ls *.zip | head -n 1)
ARTIFACT_NAME=$(basename $ARTIFACT_PATHNAME)
echo artifact_name=${ARTIFACT_NAME} >> $GITHUB_OUTPUT
echo artifact_pathname=${ARTIFACT_PATHNAME} >> $GITHUB_OUTPUT
- name: Upload Asset
id: upload-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ github.event.release.tag_name }} ./build/distributions/*
with:
upload_url: ${{ needs.prepare.outputs.upload_url }}
asset_path: ${{ steps.find_assets.outputs.artifact_pathname }}
asset_name: intellij-haxe-${{ matrix.IDEA_VERSION }}-beta.jar
asset_content_type: application/java-archive

finish:
name: publish Pre-release
Expand Down

0 comments on commit 43c2329

Please sign in to comment.