From 3f7cc60686dda65f6a05e1a073728a46ad654bac Mon Sep 17 00:00:00 2001 From: Andrew Walbran Date: Thu, 30 Mar 2023 15:35:30 +0100 Subject: [PATCH] Make zip part as part of script. This makes running local builds easier. --- .github/workflows/publish.yml | 3 --- build-exercise-templates.sh | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c698a57a..c5cc7fe7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -53,9 +53,6 @@ jobs: - name: Build exercise templates run: ./build-exercise-templates.sh - - name: Archive exercise templates - run: zip --recurse-paths book/exercises.zip exercise-templates/ - - name: Setup Pages uses: actions/configure-pages@v2 diff --git a/build-exercise-templates.sh b/build-exercise-templates.sh index cc0b30ae..42f71925 100755 --- a/build-exercise-templates.sh +++ b/build-exercise-templates.sh @@ -5,3 +5,5 @@ set -euxo pipefail mkdir exercise-templates cargo run --bin exerciser src/exercises/bare-metal/compass.md exercise-templates/compass cargo run --bin exerciser src/exercises/bare-metal/rtc.md exercise-templates/rtc + +zip --recurse-paths book/exercises.zip exercise-templates/