v0.9.0-alpha4 #3
Workflow file for this run
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
name: 'MacOS-Release' | |
on: | |
release: | |
types: | |
- created | |
- edited | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
# x86-64 | |
- macos-13 | |
# M1 processor | |
#- macos-14 | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 2 | |
submodules: false | |
- name: Extract tag name and short SHA | |
shell: bash | |
run: | | |
echo "TAG_NAME=$(echo ${GITHUB_REF#refs/tags/} | sed 's/\//_/g')" >> $GITHUB_ENV | |
echo "SHORT_SHA=`git rev-parse --short HEAD`" >> $GITHUB_ENV | |
- name: Test tag name and short SHA | |
run: | | |
echo "${TAG_NAME}" | |
echo "${SHORT_SHA}" | |
- name: Build it and package it | |
env: | |
MY_OS_NAME: macos | |
IS_RELEASE: 1 | |
run: script/cibuild $FLAGS | |
- name: Upload the artifacts | |
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
files: "packages/*.*" |