Skip to content

Commit 898e40a

Browse files
authored
Fix website publishing (#326)
* undo not fixes * summarize * wip * wip * drop prefix
1 parent e2211a7 commit 898e40a

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/publish-github-pages.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ jobs:
3939
echo "Processing release: $release"
4040
4141
# Create the target directory if it doesn't exist
42-
mkdir -p website/zig-out/www/downloads/microzig
42+
mkdir -p website/zig-out/downloads/microzig
4343
4444
# Download the artifact 'boxzer-out.tar.gz' if it exists
4545
gh release download "$release" --pattern "boxzer-out.tar.gz" --repo ${{ github.repository }} --dir . || echo "Failed to download boxzer-out.tar.gz"
4646
4747
# Check if the tarball was downloaded and unpack it
4848
if [ -f "boxzer-out.tar.gz" ]; then
4949
echo "Unpacking boxzer-out.tar.gz for release: $release"
50-
tar -xzvf boxzer-out.tar.gz -C website/zig-out/www/downloads/microzig
50+
tar -xzvf boxzer-out.tar.gz -C website/zig-out/downloads/microzig
5151
rm boxzer-out.tar.gz
5252
5353
# Add the release to the metadata array
@@ -59,20 +59,21 @@ jobs:
5959
6060
# Generate metadata.json file
6161
echo "Generating metadata.json"
62-
echo "{ \"releases\": [$(IFS=,; echo "${releases_with_artifact[*]}")] }" > website/zig-out/www/downloads/microzig/metadata.json
62+
echo "{ \"releases\": [$(IFS=,; echo "${releases_with_artifact[*]}")] }" > website/zig-out/downloads/microzig/metadata.json
6363
64-
echo "Build website"
65-
cd website
66-
zig build
64+
- name: Build Website
65+
run: zig build --summary all
66+
working-directory: website
6767

68-
echo "List of files uploaded to github pages:"
69-
tree zig-out/www
68+
- name: List Contents
69+
run: tree zig-out
70+
working-directory: website
7071

7172
- name: Upload Artifact
7273
uses: actions/upload-pages-artifact@v3
7374
id: deployment
7475
with:
75-
path: website/zig-out/www
76+
path: website/zig-out
7677

7778

7879
# Deploy job

website/build.zig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@ pub fn build(b: *std.Build) void {
88
.content_dir_path = "content",
99
.layouts_dir_path = "layouts",
1010
.assets_dir_path = "assets",
11-
.url_path_prefix = "www",
1211
});
1312
}

0 commit comments

Comments
 (0)