Skip to content

Commit 65409e1

Browse files
committed
Fix prerelease downloading
1 parent 0b04de9 commit 65409e1

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
path: "ruby"
1414
- run: |
1515
major_version=$(head -n1 ruby/debian/changelog | egrep -o "ruby[0-9.]+" | sed "s/ruby//")
16-
minor_version=$(head -n1 ruby/debian/changelog | egrep -o "\([0-9.]+" | sed "s/(//")
17-
curl https://cache.ruby-lang.org/pub/ruby/${major_version}/ruby-${minor_version}.tar.gz > ruby${major_version}_${minor_version}.orig.tar.gz
18-
# Remove this file itself to avoid generating a debian-changes file
16+
minor_version=$(head -n1 ruby/debian/changelog | egrep -o "\([0-9.]+(~[a-z0-9]+)?" | sed "s/(//")
17+
upstream_minor_version=$(echo $minor_version | sed "s/~/-/")
18+
curl https://cache.ruby-lang.org/pub/ruby/${major_version}/ruby-${upstream_minor_version}.tar.gz > ruby${major_version}_${minor_version}.orig.tar.gz # Remove this file itself to avoid generating a debian-changes file
1919
rm -rf ruby/.github
2020
- name: Publish PPA
2121
uses: maths22/publish-ppa-package@main

debian/changelog

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
ruby3.3 (3.3.0~preview2-1ppa5) focal; urgency=medium
1+
ruby3.3 (3.3.0~preview2-1ppa1) focal; urgency=medium
22

33
[ Jacob Burroughs ]
44
* New upstream version 3.3.0~preview2
55
* Restore auto-upload
66

7-
-- Ubuntu <ubuntu@focal> Mon, 18 Sep 2023 13:25:33 -0500
7+
-- Jacob Burroughs <maths22@gmail.com> Mon, 18 Sep 2023 13:25:33 -0500
88

99
ruby3.3 (3.3.0~preview1-1ppa5) focal; urgency=medium
1010

0 commit comments

Comments
 (0)