@@ -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
0 commit comments