Skip to content

Commit

Permalink
update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzawa-san committed Dec 28, 2022
1 parent 0865c9e commit d9a8044
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@ jobs:
- name: Get the configuration
id: get_configuration
run: |
[ $(echo ${{ github.ref }} | cut -d / -f 2) = "tags" ] && echo ::set-output name=configuration::Release || echo ::set-output name=configuration::Debug
[ $(echo ${{ github.ref }} | cut -d / -f 2) = "tags" ] && echo "configuration=Release" >> $GITHUB_OUTPUT || echo "configuration=Debug" >> $GITHUB_OUTPUT
- name: build
run: xcodebuild clean build -configuration ${{ steps.get_configuration.outputs.configuration }}
- name: Stage Artifact
run: mkdir bundle && cp -r build/${{ steps.get_configuration.outputs.configuration }}/Polyhedra.saver bundle/
- name: 'Store Artifact'
uses: actions/upload-artifact@v3
run: cd build/${{ steps.get_configuration.outputs.configuration }} && zip -r Polyhedra.saver.zip Polyhedra.saver && shasum -a 256 Polyhedra.saver.zip
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
name: Polyhedra.saver
path: bundle/
draft: true
generate_release_notes: true
files: build/${{ steps.get_configuration.outputs.configuration }}/Polyhedra.saver.zip

0 comments on commit d9a8044

Please sign in to comment.