From 781e7e286a5aeba073744cf9be80348a8bd16b92 Mon Sep 17 00:00:00 2001 From: William Baker Date: Tue, 12 Mar 2024 23:13:27 -0400 Subject: [PATCH] Let's see if my CI works first try --- .github/workflows/release.yml | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..c53866b --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,37 @@ +'on': + push: + branches: + - main + workflow_dispatch: ~ +jobs: + build: + name: Compile + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 18.18.x + - name: Run build script + shell: bash + run: | + npm ci --no-fund + npm run build + - uses: actions/upload-pages-artifact@v3 + with: + path: dist/ + deploy-pages: + name: Deploy GitHub Pages + runs-on: ubuntu-latest + needs: build + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - id: deployment + uses: actions/deploy-pages@v4 + with: + error_count: 1