-
Notifications
You must be signed in to change notification settings - Fork 131
55 lines (50 loc) · 2.04 KB
/
draft.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
name: Draft Release
on:
workflow_dispatch:
jobs:
draft:
name: Draft Release
runs-on: ubuntu-latest
steps:
- name: Download Development Release
uses: robinraju/release-downloader@v1.8
with:
tag: nightly
fileName: '*'
tarBall: false
zipBall: true
out-file-path: 'dev'
- name: Declare Version Variable
id: ref
shell: bash
run: echo "version=$(unzip -p ${{ github.workspace }}/dev/geode-nightly.zip geode-sdk-geode-*/VERSION | xargs)" >> $GITHUB_OUTPUT
- name: Move Files
run: |
mv dev/geode-installer-*-win.exe geode-installer-v${{ steps.ref.outputs.version }}-win.exe
mv dev/geode-installer-*-mac.pkg geode-installer-v${{ steps.ref.outputs.version }}-mac.pkg
mv dev/geode-*-win.zip geode-v${{ steps.ref.outputs.version }}-win.zip
mv dev/geode-*-mac.zip geode-v${{ steps.ref.outputs.version }}-mac.zip
mv dev/geode-*-android32.zip geode-v${{ steps.ref.outputs.version }}-android32.zip
mv dev/geode-*-android64.zip geode-v${{ steps.ref.outputs.version }}-android64.zip
mv dev/resources.zip resources.zip
- name: Create Draft Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ steps.ref.outputs.version }}
name: Geode v${{ steps.ref.outputs.version }}
body: |
TODO before publishing:
- mark if pre-release
- add changelog
- remove this
draft: true
files: |
./geode-installer-v${{ steps.ref.outputs.version }}-win.exe
./geode-installer-v${{ steps.ref.outputs.version }}-mac.pkg
./geode-v${{ steps.ref.outputs.version }}-win.zip
./geode-v${{ steps.ref.outputs.version }}-mac.zip
./geode-v${{ steps.ref.outputs.version }}-android32.zip
./geode-v${{ steps.ref.outputs.version }}-android64.zip
./resources.zip