Skip to content

Commit

Permalink
drop prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
mattnite committed Dec 20, 2024
1 parent 981969e commit 93bb26f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/publish-github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ jobs:
echo "Processing release: $release"
# Create the target directory if it doesn't exist
mkdir -p website/zig-out/www/downloads/microzig
mkdir -p website/zig-out/downloads/microzig
# Download the artifact 'boxzer-out.tar.gz' if it exists
gh release download "$release" --pattern "boxzer-out.tar.gz" --repo ${{ github.repository }} --dir . || echo "Failed to download boxzer-out.tar.gz"
# Check if the tarball was downloaded and unpack it
if [ -f "boxzer-out.tar.gz" ]; then
echo "Unpacking boxzer-out.tar.gz for release: $release"
tar -xzvf boxzer-out.tar.gz -C website/zig-out/www/downloads/microzig
tar -xzvf boxzer-out.tar.gz -C website/zig-out/downloads/microzig
rm boxzer-out.tar.gz
# Add the release to the metadata array
Expand All @@ -59,23 +59,21 @@ jobs:
# Generate metadata.json file
echo "Generating metadata.json"
echo "{ \"releases\": [$(IFS=,; echo "${releases_with_artifact[*]}")] }" > website/zig-out/www/downloads/microzig/metadata.json
echo "{ \"releases\": [$(IFS=,; echo "${releases_with_artifact[*]}")] }" > website/zig-out/downloads/microzig/metadata.json
- name: Build Website
run: |
zig build --summary all
tree zig-out
run: zig build --summary all
working-directory: website

- name: List Contents
run: tree zig-out/www
run: tree zig-out
working-directory: website

- name: Upload Artifact
uses: actions/upload-pages-artifact@v3
id: deployment
with:
path: website/zig-out/www
path: website/zig-out


# Deploy job
Expand Down
1 change: 0 additions & 1 deletion website/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ pub fn build(b: *std.Build) void {
.content_dir_path = "content",
.layouts_dir_path = "layouts",
.assets_dir_path = "assets",
.url_path_prefix = "www",
});
}

0 comments on commit 93bb26f

Please sign in to comment.