Skip to content

working on actions

working on actions #9

Workflow file for this run

name: Publish
on:
push:
branches: [main]
workflow_dispatch:
permissions:
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install WASI SDK
uses: konsumer/install-wasi-sdk@v1
with:
version: "25"
- name: Configure CMake
run: cmake -B build -DCMAKE_TOOLCHAIN_FILE=$WASI_SDK_PATH/share/cmake/wasi-sdk.cmake -DCMAKE_BUILD_TYPE=Release
- name: Build CMake
run: cmake --build build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./webroot
deploy:
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4