Skip to content

Commit

Permalink
Merge pull request #1 from RandomCoderOrg/anchor
Browse files Browse the repository at this point in the history
Anchor
  • Loading branch information
AnninoDr4 authored Jun 8, 2022
2 parents 75ea241 + fb605f0 commit 0c96f50
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .github/scripts/compute-release-tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,5 @@ udroid_download=$(
| tail -n1 | cut -d / -f 3
)

version="V${udroid_version}${BUILD_TYPE}R$((${udroid_download: -1} + 1))"

# export version to github environment
echo "VERSIONTAG=$version" >> "$GITHUB_ENV"
echo "VERSIONTAG=V${udroid_version}${BUILD_TYPE}R$((${udroid_download: -1} + 1))" >> "$GITHUB_ENV"
17 changes: 14 additions & 3 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
git submodule update
- name: Build tarballs
run: |
sudo bash build.sh -s impish -v raw -a all
sudo bash build.sh -s jammy -v raw -a all
sudo bash build.sh -s kinetic -v raw -a all
- name: upload artifacts
Expand All @@ -39,9 +41,18 @@ jobs:
with:
name: raw-tarballs
- name: Compute release tag
run: sudo bash .github/scripts/compute-release-tag.sh
run: |
udroid_version=$(git -c 'versionsort.suffix=-' ls-remote --tags --sort='v:refname' \
https://github.com/RandomCoderOrg/ubuntu-on-android \
| tail -n1 | cut -d / -f 3 | cut -d v -f 2- )
udroid_download=$(
git -c 'versionsort.suffix=-' ls-remote --tags --sort='v:refname' \
https://github.com/RandomCoderOrg/udroid-download \
| tail -n1 | cut -d / -f 3
)
echo "VERSIONTAG=V${udroid_version}${BUILD_TYPE}R$((${udroid_download: -1} + 1))" >> $GITHUB_ENV
- name: Generate release notes
run: sudo bash .github/scripts/generate-release-notes.sh
run: sudo bash /home/runner/work/udroid-download/udroid-download/.github/scripts/generate-release-notes.sh
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -61,6 +72,6 @@ jobs:
assets+=("-a" "$asset")
done
tag_name="${VERSIONTAG}"
hub release create "${assets[@]}" -m "$tag_name" "$tag_name"
hub release edit -F release.md "${assets[@]}" -m "$tag_name" "$tag_name"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 0c96f50

Please sign in to comment.