Skip to content

Commit 4a0ae87

Browse files
committed
Add github action and first ubuntu version
1 parent bc6014f commit 4a0ae87

2 files changed

Lines changed: 36 additions & 1 deletion

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.]+" | 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
19+
rm -rf ruby/.github
20+
- name: Publish PPA
21+
uses: maths22/publish-ppa-package@main
22+
with:
23+
repository: 'ppa:maths22/ruby-testing'
24+
gpg_private_key: ${{ secrets.PPA_GPG_PRIVATE_KEY }}
25+
gpg_passphrase: ${{ secrets.PPA_GPG_PASSPHRASE }}
26+
series: 'bionic focal jammy'
27+
pkgdir: '${{ github.workspace }}/ruby/'

debian/changelog

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
1+
ruby3.1 (3.1.2-1ppa1) bionic; urgency=medium
2+
3+
* Build for Ubuntu
4+
* Push to packagecloud with github action
5+
6+
-- Jacob Burroughs <maths22@gmail.com> Wed, 11 Jan 2023 21:06:52 -0600
7+
18
ruby3.2 (3.2.0-1) UNRELEASED; urgency=medium
29

310
* Ruby 3.2
11+
* TODO all the things for ruby 3.2
412

5-
-- Ubuntu <ubuntu@focal> Wed, 11 Jan 2023 19:06:37 -0600
13+
-- Jacob Burroughs <maths22@gmail.com> Wed, 11 Jan 2023 19:06:37 -0600
614

715
ruby3.1 (3.1.2-3) unstable; urgency=medium
816

0 commit comments

Comments
 (0)