From 64bebdd731f35bf4dfb475f67d8999e597dc67bb Mon Sep 17 00:00:00 2001 From: smessie Date: Tue, 10 Oct 2023 15:24:02 +0200 Subject: [PATCH] ci: Set up GitHub Action for deployment --- .github/workflows/deploy.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..1e7f9da --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,33 @@ +name: Build and Deploy +on: + push: + branches: + - main + - master + pull_request: {} +permissions: + contents: write +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v3 + + - name: Setup Node ✨ + uses: actions/setup-node@v3 + with: + node-version: 16.x + cache: npm + + - name: Install and Build 🔧 + run: | + npm i + npm run build + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@releases/v4 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BRANCH: pages + FOLDER: dist + CLEAN: true