Skip to content

Commit

Permalink
Modified build-release github workflow to upload header for me
Browse files Browse the repository at this point in the history
  • Loading branch information
saxbophone committed Sep 22, 2021
1 parent 7f7e4a9 commit 628119e
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,29 @@ jobs:
# trim prefix from ref to get tag name
run: echo "TAG_NAME=${GITHUB_REF#'refs/tags/'}" >> $GITHUB_ENV
- name: Version-stamp Header file
working-directory: ${{github.workspace}}
run: |
echo "// Unmoving $TAG_NAME downloaded from Github at https://github.com/saxbophone/unmoving/releases" > header_stub.hpp
cat header_stub.hpp unmoving/include/unmoving/PSXFixed.hpp > PSXFixed.hpp
- name: Get release
id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Upload Header file
uses: actions/upload-artifact@v2
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
with:
name: PSXFixed.hpp
working-directory: ${{github.workspace}}
path: PSXFixed.hpp
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./PSXFixed.hpp
asset_name: PSXFixed.hpp
asset_content_type: text/plain
- name: Format Docs Version Name
# trim patch version off version number as minor version specifies ABI changes
run: echo "DOCS_VERSION=${TAG_NAME%.*}" >> $GITHUB_ENV
- name: Build Doxygen Docs
uses: mattnotmitt/[email protected]
- name: Set up latest docs auto-linking
working-directory: ${{github.workspace}}
# make docs folder, move docs there, call script to generate HTML redirect in index
run: |
mkdir docs
Expand Down

0 comments on commit 628119e

Please sign in to comment.