Skip to content

Commit

Permalink
update deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoff-it committed Jul 25, 2024
1 parent 7d560f4 commit 7e225b6
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,17 @@ on:
- main # Set a branch to deploy
jobs:
deploy:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Change if you need git info

- name: Setup Zig
uses: goto-bus-stop/setup-zig@v2
uses: mlugg/setup-zig@v1
with:
version: 0.12.0-dev.3381+7057bffc1
cache: true
version: 0.13.0

- name: Restore cache
uses: actions/cache/restore@v3
with:
path: |
~/.cache/zig
zig-cache
key: zine-${{hashFiles('build.zig.zon')}}

- name: Build
run: zig build --summary all

Expand All @@ -36,10 +27,3 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./zig-out

- name: Save Cache
uses: actions/cache/save@v3
with:
path: |
~/.cache/zig
zig-cache
key: zine-${{hashFiles('build.zig.zon')}}

0 comments on commit 7e225b6

Please sign in to comment.