-
Notifications
You must be signed in to change notification settings - Fork 8
122 lines (106 loc) · 4.25 KB
/
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
name: Unreal Project Release
on:
push:
branches:
- main
paths-ignore:
- README.md
tags:
- "v*.*.*"
pull_request:
paths-ignore:
- README.md
jobs:
CronosPlaySimpleDemo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout play-unreal-plugin repo
uses: actions/checkout@v4
with:
repository: cronos-labs/play-unreal-plugin
path: simple/Plugins/play-unreal-plugin
- name: Build play-unreal-plugin repo
run: |
cd simple/Plugins/play-unreal-plugin
TARGET=4.27 make
python change_version.py 4.27.0
- name: Package
run: |
FILENAME="CronosPlaySimpleDemo.zip"
zip -r ${FILENAME} simple -x "simple/.git/*" "simple/.git/*" "simple/Plugins/play-unreal-plugin/.git/*" "simple/Plugins/play-unreal-plugin/.github/*" "simple/Plugins/play-unreal-plugin/install/*"
sha256sum ${FILENAME} > "checksums-${FILENAME}.txt"
echo "demo_project_file=${FILENAME}" >> $GITHUB_ENV
echo "demo_checksum_file=checksums-${FILENAME}.txt" >> $GITHUB_ENV
- name: Upload demo project and checksum file to Release
uses: softprops/action-gh-release@v1
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
with:
draft: true
files: |
${{ env.demo_project_file }}
${{ env.demo_checksum_file }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CronosPlayMetaverseDemo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout play-unreal-plugin repo
uses: actions/checkout@v4
with:
repository: cronos-labs/play-unreal-plugin
path: Metaverse/Plugins/play-unreal-plugin
- name: Build play-unreal-plugin repo
run: |
cd Metaverse/Plugins/play-unreal-plugin
TARGET=5.1 make
python change_version.py 5.1.0
- name: Package
run: |
FILENAME="CronosPlayMetaverseDemo.zip"
zip -r ${FILENAME} Metaverse -x "Metaverse/.git/*" "Metaverse/.git/*" "Metaverse/Plugins/play-unreal-plugin/.git/*" "Metaverse/Plugins/play-unreal-plugin/.github/*" "Metaverse/Plugins/play-unreal-plugin/install/*"
sha256sum ${FILENAME} > "checksums-${FILENAME}.txt"
echo "demo_project_file=${FILENAME}" >> $GITHUB_ENV
echo "demo_checksum_file=checksums-${FILENAME}.txt" >> $GITHUB_ENV
- name: Upload demo project and checksum file to Release
uses: softprops/action-gh-release@v1
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
with:
draft: true
files: |
${{ env.demo_project_file }}
${{ env.demo_checksum_file }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CronosPlayWalletConnectDemo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout play-unreal-plugin repo
uses: actions/checkout@v4
with:
repository: cronos-labs/play-unreal-plugin
path: walletconnect/Plugins/play-unreal-plugin
- name: Build play-unreal-plugin repo
run: |
cd walletconnect/Plugins/play-unreal-plugin
TARGET=5.4 make
python change_version.py 5.4.0
- name: Package
run: |
FILENAME="CronosPlayWalletConnectDemo.zip"
zip -r ${FILENAME} walletconnect -x "walletconnect/.git/*" "walletconnect/.git/*" "walletconnect/Plugins/play-unreal-plugin/.git/*" "walletconnect/Plugins/play-unreal-plugin/.github/*" "walletconnect/Plugins/play-unreal-plugin/install/*"
sha256sum ${FILENAME} > "checksums-${FILENAME}.txt"
echo "demo_project_file=${FILENAME}" >> $GITHUB_ENV
echo "demo_checksum_file=checksums-${FILENAME}.txt" >> $GITHUB_ENV
- name: Upload demo project and checksum file to Release
uses: softprops/action-gh-release@v1
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
with:
draft: true
files: |
${{ env.demo_project_file }}
${{ env.demo_checksum_file }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}