Skip to content

Merge pull request #18 from yuzawa-san/dependabot/github_actions/soft… #100

Merge pull request #18 from yuzawa-san/dependabot/github_actions/soft…

Merge pull request #18 from yuzawa-san/dependabot/github_actions/soft… #100

Workflow file for this run

name: build
on:
push:
tags:
- 'v*'
branches:
- master
- develop
pull_request:
branches:
- master
- develop
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout Project
uses: actions/checkout@v4
- name: Get the configuration
id: get_configuration
run: |
[ $(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: 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@v2
if: startsWith(github.ref, 'refs/tags/')
with:
draft: false
generate_release_notes: true
files: build/${{ steps.get_configuration.outputs.configuration }}/Polyhedra.saver.zip