Remove dangling reference to the dRuby home page from the overview (#49) #29
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: Release | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| - "!dependabot/**" | |
| tags: | |
| - "**" | |
| pull_request: | |
| jobs: | |
| github: | |
| name: GitHub | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Extract release note | |
| run: | | |
| ruby \ | |
| -e 'print("## dRuby "); \ | |
| puts(ARGF.read.split(/^## /)[1]. \ | |
| gsub(/ {.+?}/, ""). \ | |
| gsub(/\[(.+?)\]\[.+?\]/) {$1})' \ | |
| NEWS.md | tee release-note.md | |
| - name: Upload to release | |
| if: github.ref_type == 'tag' | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: | | |
| title=$(head -n1 release-note.md | sed -e 's/^## //') | |
| tail -n +2 release-note.md > release-note-without-version.md | |
| gh release create ${GITHUB_REF_NAME} \ | |
| --discussion-category Announcements \ | |
| --notes-file release-note-without-version.md \ | |
| --title "${title}" | |
| rubygems: | |
| name: RubyGems | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| permissions: | |
| id-token: write | |
| environment: release | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ruby | |
| bundler-cache: true | |
| - uses: rubygems/configure-rubygems-credentials@v2.1.0 | |
| if: github.ref_type == 'tag' | |
| - name: Build | |
| run: | | |
| bundle exec rake build | |
| - name: Push | |
| if: github.ref_type == 'tag' | |
| run: | | |
| bundle exec rake release:rubygem_push |