From 0b374fdb158e2b8f8f760ad06111a557df697418 Mon Sep 17 00:00:00 2001 From: datuchela <66087182+datuchela@users.noreply.github.com> Date: Sat, 12 Oct 2024 22:37:51 +0400 Subject: [PATCH] Create deploy.yml --- .github/workflows/deploy.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 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..fb9d4a8 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,31 @@ +name: Deploy to GitHub Pages + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Install Node.js + uses: actions/setup-node@v3 + with: + node-version: 'latest' + + - name: Install dependencies + run: npm install + + - name: Build project + run: npm run build # Ensure this outputs to /dist + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./dist