Skip to content

Commit 1c318aa

Browse files
committed
add .github directory
1 parent 4c4bdcc commit 1c318aa

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: publish
2+
on:
3+
push:
4+
paths:
5+
- 'debian/changelog'
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
with:
13+
path: "ruby"
14+
- run: |
15+
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.]+(~[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
19+
rm -rf ruby/.github
20+
- name: Publish PPA
21+
uses: maths22/publish-ppa-package@main
22+
with:
23+
repository: 'ppa:instructure/ruby-testing'
24+
gpg_private_key: ${{ secrets.PPA_GPG_PRIVATE_KEY }}
25+
gpg_passphrase: ${{ secrets.PPA_GPG_PASSPHRASE }}
26+
series: 'focal jammy noble'
27+
pkgdir: '${{ github.workspace }}/ruby/'

debian/changelog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
ruby3.3 (3.3.9-ppa1) focal; urgency=medium
2+
3+
* Initial empty upstream branch
4+
* New upstream version 3.3.9
5+
6+
-- Aaron Ogata <aogata@instructure.com> Thu, 16 Oct 2025 09:09:16 -0700
7+
18
ruby3.3 (3.3.3-1ppa3) focal; urgency=medium
29

310
* Fix symbols for newer ubuntu

0 commit comments

Comments
 (0)