Update README.md #33
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: Download_Install_macOS | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build-macos: | |
name: Build Download_Install_macOS | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Manage Version | |
run: | | |
git fetch --prune --unshallow --tags | |
echo "CUR_TAG=$(git tag -l | tail -1)" >> $GITHUB_ENV | |
echo "GIT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV | |
- name: Build Download_Install_macOS | |
run: | | |
chmod +x ./CreateBuild.sh | |
chmod +x ./makefile | |
- name: Prepare Release | |
run: | | |
make | |
(cd "build/" || exit 1) | |
releaseItems=(build/Release) | |
for releaseItem in "${releaseItems[@]}"; do cp -Rf "${releaseItem}" ./ || exit 1; done | |
- name: 'Tar files' | |
run: tar -cvf ./build/Release.tar ./build/Release | |
- name: Upload to Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Download_Install_macOS${{ env.GIT_SHA }} | |
path: | | |
build/Release.tar |