Add release build for intel macOS
This commit is contained in:
parent
ad0b8d6794
commit
298306ce08
1 changed files with 11 additions and 6 deletions
17
.github/workflows/main.yml
vendored
17
.github/workflows/main.yml
vendored
|
@ -36,7 +36,12 @@ jobs:
|
||||||
run: make
|
run: make
|
||||||
|
|
||||||
build-macos:
|
build-macos:
|
||||||
runs-on: macos-latest
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [macos-latest, macos-13]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
env:
|
||||||
|
BUILD_NAME: porymap-${{ matrix.os }}-${{ github.ref_name }}
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@ -61,19 +66,19 @@ jobs:
|
||||||
- name: Prep Release Directory
|
- name: Prep Release Directory
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
run: |
|
run: |
|
||||||
mkdir porymap-macOS-${{ github.ref_name }}
|
mkdir $BUILD_NAME
|
||||||
cp porymap.dmg porymap-macOS-${{ github.ref_name }}/porymap.dmg
|
cp porymap.dmg $BUILD_NAME/porymap.dmg
|
||||||
cp RELEASE-README.txt porymap-macOS-${{ github.ref_name }}/README.txt
|
cp RELEASE-README.txt $BUILD_NAME/README.txt
|
||||||
|
|
||||||
- name: Bundle Release Directory
|
- name: Bundle Release Directory
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
run: zip -r porymap-macOS-${{ github.ref_name }}.zip porymap-macOS-${{ github.ref_name }}
|
run: zip -r $BUILD_NAME.zip $BUILD_NAME
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
with:
|
with:
|
||||||
files: porymap-macOS-${{ github.ref_name }}.zip
|
files: $BUILD_NAME.zip
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue