generated from saxbophone/CPP20-Cross-Platform-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modified build-release github workflow to upload header for me
- Loading branch information
1 parent
7f7e4a9
commit 628119e
Showing
1 changed file
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|