Skip to content

Commit 0c96f50

Browse files
authored
Merge pull request #1 from RandomCoderOrg/anchor
Anchor
2 parents 75ea241 + fb605f0 commit 0c96f50

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

.github/scripts/compute-release-tag.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,5 @@ udroid_download=$(
1616
| tail -n1 | cut -d / -f 3
1717
)
1818

19-
version="V${udroid_version}${BUILD_TYPE}R$((${udroid_download: -1} + 1))"
20-
2119
# export version to github environment
22-
echo "VERSIONTAG=$version" >> "$GITHUB_ENV"
20+
echo "VERSIONTAG=V${udroid_version}${BUILD_TYPE}R$((${udroid_download: -1} + 1))" >> "$GITHUB_ENV"

.github/workflows/build-and-release.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
git submodule update
2222
- name: Build tarballs
2323
run: |
24+
sudo bash build.sh -s impish -v raw -a all
25+
sudo bash build.sh -s jammy -v raw -a all
2426
sudo bash build.sh -s kinetic -v raw -a all
2527
2628
- name: upload artifacts
@@ -39,9 +41,18 @@ jobs:
3941
with:
4042
name: raw-tarballs
4143
- name: Compute release tag
42-
run: sudo bash .github/scripts/compute-release-tag.sh
44+
run: |
45+
udroid_version=$(git -c 'versionsort.suffix=-' ls-remote --tags --sort='v:refname' \
46+
https://github.com/RandomCoderOrg/ubuntu-on-android \
47+
| tail -n1 | cut -d / -f 3 | cut -d v -f 2- )
48+
udroid_download=$(
49+
git -c 'versionsort.suffix=-' ls-remote --tags --sort='v:refname' \
50+
https://github.com/RandomCoderOrg/udroid-download \
51+
| tail -n1 | cut -d / -f 3
52+
)
53+
echo "VERSIONTAG=V${udroid_version}${BUILD_TYPE}R$((${udroid_download: -1} + 1))" >> $GITHUB_ENV
4354
- name: Generate release notes
44-
run: sudo bash .github/scripts/generate-release-notes.sh
55+
run: sudo bash /home/runner/work/udroid-download/udroid-download/.github/scripts/generate-release-notes.sh
4556
- name: Create Release
4657
id: create_release
4758
uses: actions/create-release@v1
@@ -61,6 +72,6 @@ jobs:
6172
assets+=("-a" "$asset")
6273
done
6374
tag_name="${VERSIONTAG}"
64-
hub release create "${assets[@]}" -m "$tag_name" "$tag_name"
75+
hub release edit -F release.md "${assets[@]}" -m "$tag_name" "$tag_name"
6576
env:
6677
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)