|
5 | 5 | types: [published] |
6 | 6 |
|
7 | 7 | jobs: |
8 | | - # just upload the header file to the Github release object for the "build" job |
9 | | - build-release: |
| 8 | + build: |
10 | 9 | runs-on: ubuntu-20.04 |
11 | 10 | steps: |
12 | 11 | - uses: actions/checkout@v2 |
| 12 | + - name: Set Tag Name |
| 13 | + # trim prefix from ref to get tag name |
| 14 | + run: echo "TAG_NAME=${GITHUB_REF#'refs/tags/'}" >> $GITHUB_ENV |
| 15 | + - name: Version-stamp Header file |
| 16 | + working-directory: ${{github.workspace}} |
| 17 | + run: | |
| 18 | + echo "// Unmoving $TAG_NAME downloaded from Github at https://github.com/saxbophone/unmoving/releases" > header_stub.hpp |
| 19 | + cat header_stub.hpp unmoving/include/unmoving/PSXFixed.hpp > PSXFixed.hpp |
13 | 20 | - name: Upload Header file |
14 | 21 | uses: actions/upload-artifact@v2 |
15 | 22 | with: |
16 | 23 | name: PSXFixed.hpp |
17 | | - path: ${{github.workspace}}/unmoving/include/PSXFixed.hpp |
18 | | - build-docs: |
19 | | - runs-on: ubuntu-20.04 |
20 | | - # don't deploy docs unless release build succeeds |
21 | | - needs: build-release |
22 | | - steps: |
23 | | - - uses: actions/checkout@v2 |
24 | | - - name: Set Tag Name |
25 | | - shell: bash |
26 | | - # trim prefix from ref to get tag name |
27 | | - run: echo "TAG_NAME=${GITHUB_REF#'refs/tags/'}" >> $GITHUB_ENV |
| 24 | + working-directory: ${{github.workspace}} |
| 25 | + path: PSXFixed.hpp |
28 | 26 | - name: Format Docs Version Name |
29 | | - shell: bash |
30 | 27 | # trim patch version off version number as minor version specifies ABI changes |
31 | 28 | run: echo "DOCS_VERSION=${TAG_NAME%.*}" >> $GITHUB_ENV |
32 | 29 | - name: Build Doxygen Docs |
33 | 30 | uses: mattnotmitt/[email protected] |
34 | 31 | - name: Set up latest docs auto-linking |
35 | | - shell: bash |
36 | 32 | working-directory: ${{github.workspace}} |
37 | 33 | # make docs folder, move docs there, call script to generate HTML redirect in index |
38 | 34 | run: | |
|
0 commit comments