|
52 | 52 | tag_name: ${{ env.GA_VERSION }} |
53 | 53 | release_name: ${{ env.GA_VERSION }} |
54 | 54 |
|
| 55 | + build-man-page: |
| 56 | + name: build-man-page |
| 57 | + needs: ['create-release'] |
| 58 | + runs-on: ubuntu-latest |
| 59 | + steps: |
| 60 | + - uses: actions/checkout@v4 |
| 61 | + - name: Setup environment |
| 62 | + run: | |
| 63 | + sudo apt-get update |
| 64 | + sudo apt-get --assume-yes --no-install-recommends install asciidoc |
| 65 | + - name: Build from asciidoc |
| 66 | + env: |
| 67 | + GA_VERSION: ${{ needs.create-release.outputs.GA_VERSION }} |
| 68 | + working-directory: ./Documentation |
| 69 | + run: make |
| 70 | + - name: Upload man page as artifact |
| 71 | + uses: actions/upload-artifact@v4 |
| 72 | + with: |
| 73 | + path: Documentation/git-absorb.1 |
| 74 | + name: git-absorb.1 |
| 75 | + - name: Attach man page to release |
| 76 | + |
| 77 | + env: |
| 78 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 79 | + with: |
| 80 | + upload_url: ${{ needs.create-release.outputs.upload_url }} |
| 81 | + asset_path: Documentation/git-absorb.1 |
| 82 | + asset_name: git-absorb.1 |
| 83 | + asset_content_type: application/octet-stream |
| 84 | + |
55 | 85 | build-release: |
56 | 86 | name: build-release |
57 | | - needs: ['create-release'] |
| 87 | + needs: ['create-release', 'build-man-page'] |
58 | 88 | runs-on: ${{ matrix.os }} |
59 | 89 | env: |
60 | 90 | # Emit backtraces on panics. |
@@ -122,6 +152,12 @@ jobs: |
122 | 152 | arm-linux-gnueabihf-strip \ |
123 | 153 | /target/arm-unknown-linux-gnueabihf/release/git-absorb |
124 | 154 |
|
| 155 | + - name: Download man page |
| 156 | + uses: actions/download-artifact@v4 |
| 157 | + with: |
| 158 | + name: git-absorb.1 |
| 159 | + path: Documentation |
| 160 | + |
125 | 161 | - name: Build archive |
126 | 162 | shell: bash |
127 | 163 | run: | |
|
0 commit comments