read symlink directly #86
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: publish | |
| on: | |
| push: | |
| paths: | |
| - 'debian/changelog' | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| path: "ruby" | |
| - run: | | |
| major_version=$(head -n1 ruby/debian/changelog | egrep -o "ruby[0-9.]+" | sed "s/ruby//") | |
| minor_version=$(head -n1 ruby/debian/changelog | egrep -o "\([0-9.]+(~[a-z0-9]+)?" | sed "s/(//") | |
| upstream_minor_version=$(echo $minor_version | sed "s/~/-/") | |
| 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 | |
| rm -rf ruby/.github | |
| - name: Publish PPA | |
| uses: maths22/publish-ppa-package@main | |
| with: | |
| repository: 'ppa:instructure/ruby-testing' | |
| gpg_private_key: ${{ secrets.PPA_GPG_PRIVATE_KEY }} | |
| gpg_passphrase: ${{ secrets.PPA_GPG_PASSPHRASE }} | |
| series: 'focal jammy' | |
| pkgdir: '${{ github.workspace }}/ruby/' |