Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft Release Workflow #4

Merged
merged 26 commits into from
Feb 28, 2025
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
3d732d0
Reorder events so that the binary zip exes are not compressed by UPX
Lethja Feb 27, 2025
bffd4ff
Initial commit for the "Draft" job
Lethja Feb 27, 2025
ac574b2
Use actions/download-artifact@v4
Lethja Feb 27, 2025
43a4535
Print the working directory as part of the unzipping process
Lethja Feb 27, 2025
c5b749f
Assume download-artifact path is a file
Lethja Feb 27, 2025
9d0d537
Simplified the download-artifact parameters
Lethja Feb 27, 2025
94400ad
Removed Upzip Artifact
Lethja Feb 27, 2025
fc80a11
Added pwd to List Directory
Lethja Feb 27, 2025
d7ecedc
Specify each upload manually
Lethja Feb 28, 2025
9f2c2aa
Add checkout v4 to make GitHub CLI happy
Lethja Feb 28, 2025
7caeaa5
Try use action-gh-release v2
Lethja Feb 28, 2025
2a643fd
Added write permissions action-gh-release
Lethja Feb 28, 2025
095b2ee
Try again with gh command
Lethja Feb 28, 2025
f0ff246
Move permissions to the draft job
Lethja Feb 28, 2025
7136113
Added read action
Lethja Feb 28, 2025
9893c7f
Write all
Lethja Feb 28, 2025
1ed3119
More debug output
Lethja Feb 28, 2025
ca0478e
Corrected bad name
Lethja Feb 28, 2025
f2874c8
Correct `gh` replacing spaces with dots
Lethja Feb 28, 2025
c9d9ac6
Made Draft workflow permissions stricter
Lethja Feb 28, 2025
afdb77d
Remove redundant steps in Draft
Lethja Feb 28, 2025
85f6b67
Added id to download artifact to pass download-path to gh later in th…
Lethja Feb 28, 2025
4f5c85f
Added an echo to check the artifact folder path was captured
Lethja Feb 28, 2025
5fa07a2
Revert "Added id to download artifact to pass download-path to gh lat…
Lethja Feb 28, 2025
f684a71
Only match ISO8601 tags
Lethja Feb 28, 2025
ae5af39
Only match tags starting with 202
Lethja Feb 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 39 additions & 11 deletions .github/workflows/LuaWatcom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: push

jobs:
Watcom:
name: Lua for Watcom
name: Build Lua with Open Watcom
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -64,27 +64,55 @@ jobs:
run: |
unix2dos *.lua

- name: Create 160k Floppy Diskette Image
- name: Create Binaries Zip
run: |
mformat -C -i dist/Lua5DD8.ima -v LUA -f 160
mcopy -i dist/Lua5DD8.ima dist/bin/lua16.exe example.lua ::
zip -j9 --DOS-names "dist/Lua Exe.zip" dist/bin/*.exe example.lua

- name: Create 1.4M Floppy Diskette Image
- name: Create 160k 16-bit DOS Floppy Diskette Image
run: |
mformat -C -i dist/Lua3HD18.ima -v LUA -f 1440
mcopy -i dist/Lua3HD18.ima dist/bin/*.exe example.lua ::
mformat -C -i dist/Lua160k.ima -v "LUA DOS" -f 160
mcopy -i dist/Lua160k.ima dist/bin/lua16.exe example.lua ::

- name: Create Zip Binaries
- name: Create 1.4M Multi-Platform Floppy Diskette Image
run: |
zip -j9 --DOS-names "dist/Lua DOS Bin.zip" dist/bin/*.exe example.lua
mformat -C -i dist/LuaMulti.ima -v "LUA MULTIOS" -f 1440
mcopy -i dist/LuaMulti.ima dist/bin/*.exe example.lua ::

- name: Zip Disk Images
- name: Create Floppy Disk Images Zip
run: |
zip -j9 --DOS-names "dist/Lua DOS Ima.zip" dist/*.ima
zip -j9 --DOS-names "dist/Lua Ima.zip" dist/*.ima

- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: 'Lua Binaries'
path: dist/*.zip
compression-level: 0

Draft:
name: Draft Release
needs: Watcom
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/202')

permissions:
contents: write
actions: read

steps:
- uses: actions/checkout@v4

- name: Download Artifacts
uses: actions/download-artifact@v4

- name: Create Draft Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
TAG_NAME="${GITHUB_REF#refs/tags/}" # Extract the tag name
gh release create "$TAG_NAME" \
--draft \
--title "$TAG_NAME" \
--notes "Lua for Watcom builds from $TAG_NAME" \
"Lua Binaries/Lua Exe.zip#Lua Exe.zip" \
"Lua Binaries/Lua Ima.zip#Lua Ima.zip"