-
Notifications
You must be signed in to change notification settings - Fork 2
76 lines (65 loc) · 2.08 KB
/
make-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Make a New Release
on:
push:
tags:
- '*'
jobs:
build-6809-dsk-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build *.dsk images
run: ./forge all
- name: 'Upload 6809 *.dsk Images'
uses: actions/upload-artifact@v2
with:
name: 6809-dsk-image
path: build/*.DSK
retention-days: 1
build-6309-dsk-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build *.dsk images
run: ./forge CPU=6309 all
- name: 'Upload 6309 *.dsk Images'
uses: actions/upload-artifact@v2
with:
name: 6309-dsk-image
path: build/*.DSK
retention-days: 1
build-macos:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- name: Build and test macOS application
env:
DEVELOPER_DIR: /Applications/Xcode_11.7.app/Contents/Developer
run: |
xcodebuild -project Space\ Bandits/Space\ Bandits.xcodeproj -configuration Release -scheme "Space Bandits" build CONFIGURATION_BUILD_DIR=`pwd`/build
cd build
tar cvf space-bandits.tgz *.app
- name: 'Upload Tar Ball Apps'
uses: actions/upload-artifact@v2
with:
name: tar-ball-apps
path: build/*.tgz
retention-days: 1
upload-artifacts:
runs-on: ubuntu-latest
needs: [build-6809-dsk-image, build-6309-dsk-image, build-macos]
steps:
- name: Download all workflow run artifacts
uses: actions/download-artifact@v2
- name: Get the tag
run: |
echo "RELEASE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
echo "REPO_NAME=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
- name: Create a release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: "./6809-dsk-image/*.DSK,./6309-dsk-image/*.DSK,./tar-ball-apps/*.tgz"
allowUpdates: true
draft: true
name: "${{ format('{0} {1}', env.REPO_NAME, env.RELEASE_TAG) }}"