-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New release job and automatic generated changelog
- Loading branch information
Showing
3 changed files
with
54 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
changelog: | ||
exclude: | ||
labels: | ||
- ignore-for-release | ||
authors: | ||
- someuser | ||
categories: | ||
- title: Breaking Changes 🛠 | ||
labels: | ||
- breaking-change | ||
- title: Exciting New Features 🎉 | ||
labels: | ||
- enhancement | ||
- title: Dependencies | ||
labels: | ||
- dependencies | ||
- title: Espresso test | ||
labels: | ||
- Espresso | ||
- title: Other Changes | ||
labels: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,18 +19,37 @@ jobs: | |
with: | ||
distribution: 'adopt' | ||
java-version: 17 | ||
- name: Find Tag | ||
id: tagger | ||
uses: jimschubert/query-tag-action@v2 | ||
with: | ||
skip-unshallow: 'true' | ||
commit-ish: HEAD | ||
- name: Check pre-release | ||
run: | | ||
echo "tag=${{steps.tagger.outputs.tag}}" | ||
if [[ ${{ steps.tagger.outputs.tag }} == *alpha* || ${{ steps.tagger.outputs.tag }} == *beta* ]] | ||
then | ||
prerelease=true | ||
else | ||
prerelease=false | ||
fi | ||
echo "PRE_RELEASE=$prerelease" >> $GITHUB_ENV | ||
echo "prerelease=$prerelease" | ||
- name: Install Android SDK | ||
uses: hannesa2/action-android/[email protected] | ||
- name: Build project | ||
run: ./gradlew clean build | ||
run: ./gradlew assembleRelease | ||
env: | ||
VERSION: ${{ github.ref }} | ||
- run: | | ||
assetsAAR=$(find . -name *release.aar | while read -r asset ; do echo "-a $asset" ; done) | ||
VERSION=$(echo $VERSION | cut -d'/' -f3) | ||
assetsJAR=$(find . -name IOIO*${VERSION}.jar | while read -r asset ; do echo "-a $asset" ; done) | ||
tag_name="${GITHUB_REF##*/}" | ||
hub release create ${assetsAAR} ${assetsJAR} -m "$tag_name" "$tag_name" | ||
- name: Create Release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
tag_name: ${{steps.tagger.outputs.tag}} | ||
generate_release_notes: true | ||
prerelease: ${{ env.PRE_RELEASE }} | ||
name: ${{steps.tagger.outputs.tag}} | ||
files: | | ||
./**/build/outputs/aar/*-release.aar | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
VERSION: ${{ github.ref }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters