Skip to content

Commit

Permalink
Switch to manual workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
planger authored Dec 22, 2023
1 parent 7ae3c75 commit 6e90b47
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Draft Release

on:
release:
types: [created]
workflow_dispatch:

jobs:
build:
Expand All @@ -17,15 +16,8 @@ jobs:
cache: maven
- name: Build (mvn package)
run: mvn -B package --file com.eclipsesource.megit.parent/pom.xml
- name: Upload each zip file as a separate asset
run: |
for zipfile in ./com.eclipsesource.megit.product/target/products/*.zip; do
asset_name=$(basename $zipfile)
echo "Uploading $asset_name"
curl \
-X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Content-Type: $(file -b --mime-type $zipfile)" \
--data-binary @$zipfile \
${{ github.event.release.upload_url }}?name=$asset_name
done
- name: Create Release
uses: softprops/action-gh-release@v1
with:
draft: true
files: ./com.eclipsesource.megit.product/target/products/*.zip

0 comments on commit 6e90b47

Please sign in to comment.