Skip to content

Update epubcheck-ruby requirement from 5.0.0.0 to 5.1.0.0 (#351) #90

Update epubcheck-ruby requirement from 5.0.0.0 to 5.1.0.0 (#351)

Update epubcheck-ruby requirement from 5.0.0.0 to 5.1.0.0 (#351) #90

name: Release on push to main
on:
push:
branches: [ main ]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Build release assets
run: bundle exec rake book:build
- name: Compute tag name
id: compute-tag
run: |
echo Computing next tag number
LASTPATCH=$(git describe --tags | cut -d- -f1 | cut -d. -f3)
PATCH=$(($LASTPATCH+1))
echo "tagname=2.1.${PATCH}" >> $GITHUB_OUTPUT
- name: Create release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.compute-tag.outputs.tagname }}
commit: main
artifacts: './progit.epub,./progit.fb2.zip,./progit.mobi,./progit.pdf,./progit.html'