Skip to content

Commit 8020dc0

Browse files
committed
Try again with gh command
1 parent 2a643fd commit 8020dc0

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

.github/workflows/LuaWatcom.yml

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,24 @@ jobs:
101101
- name: Download Artifacts
102102
uses: actions/download-artifact@v4
103103

104-
- uses: softprops/action-gh-release@v2
105-
if: startsWith(github.ref, 'refs/tags/')
106-
with:
107-
permissions: write-all
108-
files: |
109-
Lua Binaries/Lua Exe.zip
110-
Lua Binaries/Lua Img.zip
104+
- name: List Directory
105+
run: |
106+
pwd
107+
ls -R
108+
109+
- name: Install GitHub CLI
110+
run: |
111+
sudo apt-get update && sudo apt-get install -y gh
112+
113+
- name: Create Draft Release
114+
permission: write-all
115+
env:
116+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
117+
run: |
118+
TAG_NAME="${GITHUB_REF#refs/tags/}" # Extract the tag name
119+
gh release create "$TAG_NAME" \
120+
--draft \
121+
--title "$TAG_NAME" \
122+
--notes "Lua for Watcom builds from $TAG_NAME" \
123+
"Lua Binaries/Lua Exe.zip"
124+
"Lua Binaries/Lua Img.zip"

0 commit comments

Comments
 (0)