File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 36
36
run : make
37
37
38
38
build-macos :
39
- runs-on : macos-latest
39
+ strategy :
40
+ matrix :
41
+ os : [macos-latest, macos-13]
42
+ runs-on : ${{ matrix.os }}
43
+ env :
44
+ BUILD_NAME : porymap-${{ matrix.os }}-${{ github.ref_name }}
40
45
steps :
41
46
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
42
47
- uses : actions/checkout@v4
@@ -61,19 +66,19 @@ jobs:
61
66
- name : Prep Release Directory
62
67
if : startsWith(github.ref, 'refs/tags/')
63
68
run : |
64
- mkdir porymap-macOS-${{ github.ref_name }}
65
- cp porymap.dmg porymap-macOS-${{ github.ref_name }} /porymap.dmg
66
- cp RELEASE-README.txt porymap-macOS-${{ github.ref_name }} /README.txt
69
+ mkdir $BUILD_NAME
70
+ cp porymap.dmg $BUILD_NAME /porymap.dmg
71
+ cp RELEASE-README.txt $BUILD_NAME /README.txt
67
72
68
73
- name : Bundle Release Directory
69
74
if : startsWith(github.ref, 'refs/tags/')
70
- run : zip -r porymap-macOS-${{ github.ref_name }}. zip porymap-macOS-${{ github.ref_name }}
75
+ run : zip -r $BUILD_NAME. zip $BUILD_NAME
71
76
72
77
- name : Release
73
78
uses : softprops/action-gh-release@v2
74
79
if : startsWith(github.ref, 'refs/tags/')
75
80
with :
76
- files : porymap-macOS-${{ github.ref_name }} .zip
81
+ files : $BUILD_NAME .zip
77
82
env :
78
83
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
79
84
You can’t perform that action at this time.
0 commit comments