Skip to content

Commit 5dc72c9

Browse files
committed
Release The Build
1 parent b5b5314 commit 5dc72c9

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,28 @@ jobs:
5252

5353
- name: Run build script
5454
run: ./build
55+
56+
- name: Create GitHub Release
57+
uses: softprops/action-gh-release@v1
58+
with:
59+
tag_name: latest-release
60+
name: "GraphScript Installer - $(date +'%Y-%m-%d')"
61+
files: |
62+
GSInstallerMac.zip
63+
version
64+
env:
65+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66+
67+
- name: README
68+
run: |
69+
URL="https://github.com/GraphScript-Labs"
70+
DIR="/installer/releases/download/latest-release/"
71+
FILE="GSInstallerMac.zip"
72+
echo "$URL$DIR$FILE" > README.md
5573
5674
- name: Clean up source files
5775
run: |
58-
find . -mindepth 1 -maxdepth 1 ! -name 'GSInstallerMac.zip' ! -name '.git' -exec rm -rf {} +
76+
find . -mindepth 1 -maxdepth 1 ! -name 'README.md' ! -name '.git' -exec rm -rf {} +
5977
6078
- name: Version File
6179
run: |

build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ chmod 755 dist/Contents/runtime/bin/*
5050

5151
cat > "dist/Contents/MacOS/launcher.sh" <<EOF
5252
#!/bin/bash
53+
5354
DIR="\$(cd "\$(dirname "\$0")" && pwd)"
5455
RUNTIME_DIR="\$DIR/../runtime"
5556
SOURCE_DIR="\$DIR/../src"

0 commit comments

Comments
 (0)