Skip to content

Commit bffd4ff

Browse files
committed
Initial commit for the "Draft" job
1 parent 3d732d0 commit bffd4ff

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/LuaWatcom.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,34 @@ jobs:
8888
name: 'Lua Binaries'
8989
path: dist/*.zip
9090
compression-level: 0
91+
92+
Draft:
93+
name: Draft Release
94+
needs: Watcom
95+
runs-on: ubuntu-latest
96+
if: startsWith(github.ref, 'refs/tags')
97+
98+
steps:
99+
- name: Download Artifacts
100+
uses: actions/download-artifact@v3
101+
with:
102+
name: 'Lua Binaries'
103+
104+
- name: Unzip Artifact
105+
run: |
106+
unzip "Lua Binaries.zip" -d extracted
107+
108+
- name: Install GitHub CLI
109+
run: |
110+
sudo apt-get update && sudo apt-get install -y gh
111+
112+
- name: Create Draft Release
113+
env:
114+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
115+
run: |
116+
TAG_NAME="${GITHUB_REF#refs/tags/}" # Extract the tag name
117+
gh release create "$TAG_NAME" \
118+
--draft \
119+
--title "$TAG_NAME" \
120+
--notes "Lua for Watcom builds from $TAG_NAME" \
121+
extracted/*.zip

0 commit comments

Comments
 (0)