Skip to content

Commit 086052f

Browse files
committed
restore .github directory
1 parent ad1cca4 commit 086052f

1 file changed

Lines changed: 27 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'
27+
pkgdir: '${{ github.workspace }}/ruby/'

0 commit comments

Comments
 (0)