Skip to content

Commit

Permalink
Merge pull request #18 from toppers/add_auto_release
Browse files Browse the repository at this point in the history
add release actions
  • Loading branch information
mitsut authored Jan 2, 2024
2 parents 0a0e42c + 26dd580 commit 831d8c4
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,29 @@ jobs:
- name: Hakoniwa-core
run: |
bash build.bash
- name: Artifact Name for ubuntu
if: matrix.os == 'ubuntu-latest'
run: |
echo "ARTIFACT_NAME=libshakoc.so" >> $GITHUB_ENV
echo "ARTIFACT_PATH=cmake-build/src/hakoc/libshakoc.so" >> $GITHUB_ENV
- name: Artifact Name for mac
if: matrix.os == 'macos-latest'
run: |
echo "ARTIFACT_NAME=libshakoc.dylib" >> $GITHUB_ENV
echo "ARTIFACT_PATH=cmake-build/src/hakoc/libshakoc.dylib" >> $GITHUB_ENV
- name: upload Artifact
if: startsWith(github.ref, 'refs/tags/v')
uses: actions/upload-artifact@v3
with:
name: ${{env.ARTIFACT_NAME}}
path: ${{env.ARTIFACT_PATH}}

- name: Publish archives and packages
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v1
with:
files: |
${{ env.ARTIFACT_PATH }}

0 comments on commit 831d8c4

Please sign in to comment.