From 07e951c9937ec9e264da6617adfc5295a124e147 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Tue, 6 Feb 2024 11:22:35 +0530 Subject: [PATCH] chore(actions): add github pages deployment action --- .github/workflows/pages.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/pages.yml diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 0000000..b83b407 --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,29 @@ +name: Publish to GitHub Pages + +on: + push: + branches: + - wasm + workflow_dispatch: + +jobs: + deploy: + concurrency: ci-${{ github.ref }} + name: Test setup-lune action + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + - name: Install Rust Toolchain + uses: actions-rs/toolchain@v1 + - name: Install `cargo-binstall` Command + run: curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash + - name: Install Trunk + run: cargo binstall --locked trunk + - name: Compile WASM Site + run: trunk build --release + - name: Deploy to GitHub Pages + uses: JamesIves/github-pages-deploy-action@v4 + with: + folder: build +