Skip to content

Commit 7d8325c

Browse files
committed
Copy README to distribution zip, copy files to addon in workflow
1 parent d424909 commit 7d8325c

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ jobs:
148148
with:
149149
path: artifacts
150150
- name: Copy artifacts to build folder
151-
run: cp -r ${{ steps.download.outputs.download-path }}/**/libluagdextension* addons/lua-gdextension/build
151+
run: |
152+
make copy-files-to-addon
153+
cp -r ${{ steps.download.outputs.download-path }}/**/libluagdextension* addons/lua-gdextension/build
152154
- name: Upload artifact
153155
uses: actions/upload-artifact@v4
154156
with:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ build/*
1616
*.dylib
1717
*.framework
1818
compile_commands.json
19+
addons/lua-gdextension/README.md
1920
addons/lua-gdextension/LICENSE
2021
src/generated/
2122

Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Zip distribution
22
ADDONS_DIR = addons/lua-gdextension
33
ADDONS_SRC = $(shell find $(ADDONS_DIR) -type f)
4-
COPIED_FILES = LICENSE
4+
COPIED_FILES = LICENSE README.md
55
# Testing
66
GODOT_BIN ?= godot
77
# Download releases
@@ -31,7 +31,9 @@ $(ADDONS_DIR)/%: %
3131
build:
3232
mkdir -p $@
3333

34-
build/lua-gdextension.zip: $(ADDONS_SRC) $(addprefix $(ADDONS_DIR)/,$(COPIED_FILES)) | build
34+
copy-files-to-addon: $(addprefix $(ADDONS_DIR)/,$(COPIED_FILES)) | build
35+
36+
build/lua-gdextension.zip: $(ADDONS_SRC) copy-files-to-addon | build
3537
zip $@ $^
3638

3739
build/update_changelog_version.sed:
@@ -46,8 +48,7 @@ build/update_readme_version.sed:
4648
test/.godot:
4749
$(GODOT_BIN) --headless --quit --path test --editor || true
4850

49-
50-
.PHONY: zip test download-latest-build bump-version build/update_changelog_version.sed
51+
.PHONY: zip test download-latest-build bump-version
5152
zip: build/lua-gdextension.zip
5253

5354
test: test/.godot

0 commit comments

Comments
 (0)