Skip to content

Commit 095b2ee

Browse files
committed
Try again with gh command
1 parent 2a643fd commit 095b2ee

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

.github/workflows/LuaWatcom.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,25 @@ 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/')
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
106114
with:
107-
permissions: write-all
108-
files: |
109-
Lua Binaries/Lua Exe.zip
110-
Lua Binaries/Lua Img.zip
115+
permission: write-all
116+
env:
117+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
118+
run: |
119+
TAG_NAME="${GITHUB_REF#refs/tags/}" # Extract the tag name
120+
gh release create "$TAG_NAME" \
121+
--draft \
122+
--title "$TAG_NAME" \
123+
--notes "Lua for Watcom builds from $TAG_NAME" \
124+
"Lua Binaries/Lua Exe.zip"
125+
"Lua Binaries/Lua Img.zip"

0 commit comments

Comments
 (0)