Skip to content

Commit

Permalink
Merge pull request #4 from lbarnkow/feature/release-ci
Browse files Browse the repository at this point in the history
add basic release support to ci workflow
  • Loading branch information
lbarnkow authored May 30, 2022
2 parents db7ced1 + cf643f5 commit 3ca188e
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 2 deletions.
19 changes: 19 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
changelog:
exclude:
# labels:
# - ignore-for-release
authors:
- octocat
categories:
- title: 🛠️ Breaking Changes
labels:
- breaking
- title: 🎉 New Features and Improvements
labels:
- enhancement
- title: 🐛 Bug fixes
labels:
- bug
- title: 🔍 Other Changes
labels:
- "*"
50 changes: 48 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ jobs:
name: gradle-install
path: app/build/install/app/

- uses: actions/upload-artifact@v3
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
with:
name: assets
path: app/assets/

- uses: actions/upload-artifact@v3
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
with:
Expand Down Expand Up @@ -124,7 +130,47 @@ jobs:
# publish release
release:
if: startsWith(github.ref, 'refs/tags/v')
needs: [native-image-linux-amd64, native-image-linux-arm64]
needs: [java, native-image-linux-amd64, native-image-linux-arm64]
runs-on: ubuntu-latest
steps:
- run: uname --all # TODO
- uses: actions/download-artifact@v3
with:
name: native-image-linux-amd64

- uses: actions/download-artifact@v3
with:
name: native-image-linux-arm64

- uses: actions/download-artifact@v3
with:
name: gradle-install
path: gradle-install

- uses: actions/download-artifact@v3
with:
name: assets
path: assets

- run: |
set -x
cp -a assets gradle-install/
zip -r assets.zip assets/
cd gradle-install/bin
mv app minchir-$GITHUB_REF_NAME
mv app.bat minchir-$GITHUB_REF_NAME.bar
cd ../..
mv gradle-install minchir-$GITHUB_REF_NAME
zip -r minchir-$GITHUB_REF_NAME.zip minchir-$GITHUB_REF_NAME/
ls -lah
tree
- uses: softprops/[email protected]
with:
fail_on_unmatched_files: true
prerelease: ${{ contains(github.ref, '-') }}
generate_release_notes: true
files: |
minchir-${{ github.ref_name }}.zip
assets.zip
minchir-linux-arm64
minchir-linux-amd64

0 comments on commit 3ca188e

Please sign in to comment.