Skip to content

working on gh actions #33

working on gh actions

working on gh actions #33

Workflow file for this run

name: github pages
on:
push:
branches:
- main # Set a branch to deploy
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Change if you need git info
- name: Setup Zig
uses: goto-bus-stop/setup-zig@v2
with:
version: 0.12.0-dev.2701+d18f52197
# - id: get-cache
# name: Get Global Cache Location
# run: echo "path=$(zig env | jq .global_cache_dir -r)" >> $GITHUB_OUTPUT
- name: Restore cache
uses: actions/cache/restore@v3
with:
path:|
~/.cache/zig
zig-cache
key: zine-${{hashFiles('build.zig.zon')}}

Check failure on line 28 in .github/workflows/gh-pages.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/gh-pages.yml

Invalid workflow file

You have an error in your yaml syntax on line 28
- name: Build
run: zig build --summary all
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
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')}}