|
41 | 41 | # Runs a set of commands using the runners shell
|
42 | 42 | - name: build book
|
43 | 43 | run: |
|
44 |
| - bundle exec rake book:build |
| 44 | + bundle exec rake book:build_action |
45 | 45 | bundle exec rake book:tag
|
| 46 | + - name: Bump version and push tag |
| 47 | + id: tag_version |
| 48 | + uses: mathieudutour/[email protected] |
| 49 | + with: |
| 50 | + github_token: ${{ secrets.GITHUB_TOKEN }} |
| 51 | + - name: Create a GitHub release |
| 52 | + id: create_relase |
| 53 | + uses: actions/create-release@v1 |
| 54 | + env: |
| 55 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 56 | + with: |
| 57 | + tag_name: ${{ steps.tag_version.outputs.new_tag }} |
| 58 | + release_name: Release ${{ steps.tag_version.outputs.new_tag }} |
| 59 | + body: ${{ steps.tag_version.outputs.changelog }} |
| 60 | + - name: Upload epub |
| 61 | + id: upload-epub |
| 62 | + uses: actions/upload-release-asset@v1 |
| 63 | + env: |
| 64 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 65 | + with: |
| 66 | + upload_url: ${{ steps.create_release.outputs.upload_url }} |
| 67 | + asset_path: ./progit.epub |
| 68 | + asset_name: progit.epub |
| 69 | + asset_content_type: application/epub+zip |
| 70 | + - name: Upload mobi |
| 71 | + id: upload-mobi |
| 72 | + uses: actions/upload-release-asset@v1 |
| 73 | + env: |
| 74 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 75 | + with: |
| 76 | + upload_url: ${{ steps.create_release.outputs.upload_url }} |
| 77 | + asset_path: ./progit.mobi |
| 78 | + asset_name: progit.mobi |
| 79 | + asset_content_type: application/x-mobipocket-ebook |
| 80 | + - name: Upload pdf |
| 81 | + id: upload-pdf |
| 82 | + uses: actions/upload-release-asset@v1 |
| 83 | + env: |
| 84 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 85 | + with: |
| 86 | + upload_url: ${{ steps.create_release.outputs.upload_url }} |
| 87 | + asset_path: ./progit.pdf |
| 88 | + asset_name: progit.pdf |
| 89 | + asset_content_type: application/pdf |
0 commit comments