Skip to content

Commit 628119e

Browse files
committed
Modified build-release github workflow to upload header for me
1 parent 7f7e4a9 commit 628119e

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/build-release.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,29 @@ jobs:
1313
# trim prefix from ref to get tag name
1414
run: echo "TAG_NAME=${GITHUB_REF#'refs/tags/'}" >> $GITHUB_ENV
1515
- name: Version-stamp Header file
16-
working-directory: ${{github.workspace}}
1716
run: |
1817
echo "// Unmoving $TAG_NAME downloaded from Github at https://github.com/saxbophone/unmoving/releases" > header_stub.hpp
1918
cat header_stub.hpp unmoving/include/unmoving/PSXFixed.hpp > PSXFixed.hpp
19+
- name: Get release
20+
id: get_release
21+
uses: bruceadams/[email protected]
22+
env:
23+
GITHUB_TOKEN: ${{ github.token }}
2024
- name: Upload Header file
21-
uses: actions/upload-artifact@v2
25+
uses: actions/[email protected]
26+
env:
27+
GITHUB_TOKEN: ${{ github.token }}
2228
with:
23-
name: PSXFixed.hpp
24-
working-directory: ${{github.workspace}}
25-
path: PSXFixed.hpp
29+
upload_url: ${{ steps.get_release.outputs.upload_url }}
30+
asset_path: ./PSXFixed.hpp
31+
asset_name: PSXFixed.hpp
32+
asset_content_type: text/plain
2633
- name: Format Docs Version Name
2734
# trim patch version off version number as minor version specifies ABI changes
2835
run: echo "DOCS_VERSION=${TAG_NAME%.*}" >> $GITHUB_ENV
2936
- name: Build Doxygen Docs
3037
uses: mattnotmitt/[email protected]
3138
- name: Set up latest docs auto-linking
32-
working-directory: ${{github.workspace}}
3339
# make docs folder, move docs there, call script to generate HTML redirect in index
3440
run: |
3541
mkdir docs

0 commit comments

Comments
 (0)