2023-08-03 14:02:01 -04:00
|
|
|
name: Draft Release
|
2023-08-03 13:59:26 -04:00
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
draft:
|
2023-08-03 20:29:17 -04:00
|
|
|
name: Draft Release
|
2023-08-03 13:59:26 -04:00
|
|
|
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'
|
|
|
|
|
2023-08-03 14:55:24 -04:00
|
|
|
- name: Declare Version Variable
|
2023-08-03 13:59:26 -04:00
|
|
|
id: ref
|
|
|
|
shell: bash
|
2023-08-03 15:28:35 -04:00
|
|
|
run: echo "version=$(unzip -p ${{ github.workspace }}/dev/geode-nightly.zip geode-sdk-geode-*/VERSION | xargs)" >> $GITHUB_OUTPUT
|
2023-08-03 13:59:26 -04:00
|
|
|
|
|
|
|
- name: Move Files
|
|
|
|
run: |
|
2023-08-03 18:54:13 -04:00
|
|
|
mv dev/geode-installer-*-mac.pkg geode-installer-v${{ steps.ref.outputs.version }}-mac.pkg
|
|
|
|
mv dev/geode-installer-*-win.exe geode-installer-v${{ steps.ref.outputs.version }}-win.exe
|
|
|
|
mv dev/geode-*-mac.zip geode-v${{ steps.ref.outputs.version }}-mac.zip
|
|
|
|
mv dev/geode-*-win.zip geode-v${{ steps.ref.outputs.version }}-win.zip
|
2023-10-15 12:37:34 -04:00
|
|
|
mv dev/geode-*-android.zip geode-v${{ steps.ref.outputs.version }}-android.zip
|
2023-09-16 07:09:05 -04:00
|
|
|
mv dev/resources.zip resources.zip
|
2023-08-03 13:59:26 -04:00
|
|
|
|
|
|
|
- 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: |
|
2023-08-03 18:54:13 -04:00
|
|
|
./geode-installer-v${{ steps.ref.outputs.version }}-mac.pkg
|
|
|
|
./geode-installer-v${{ steps.ref.outputs.version }}-win.exe
|
2023-08-03 20:21:28 -04:00
|
|
|
./geode-v${{ steps.ref.outputs.version }}-mac.zip
|
|
|
|
./geode-v${{ steps.ref.outputs.version }}-win.zip
|
2023-10-15 12:37:34 -04:00
|
|
|
./geode-v${{ steps.ref.outputs.version }}-android.zip
|
2023-09-16 07:09:05 -04:00
|
|
|
./resources.zip
|