From 11d296ec81bacf7479fff819fcb21a28b8b4d45d Mon Sep 17 00:00:00 2001 From: Guilherme Pires Date: Fri, 22 Dec 2023 10:44:08 -0300 Subject: [PATCH] Adding github actions config --- .github/workflows/deploy.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..0e65fdd --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,28 @@ +name: Deploy to GitHub Pages + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 # This action checks out your repository + - name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version: '20.9.0' # Use whatever node version your project requires + + - name: Install Dependencies + run: npm install + + - name: Build Project + run: npm run build # Use the correct build command for your project. It may include 'dist' as part of the script in your package.json. + - name: Build and Deploy + uses: JamesIves/github-pages-deploy-action@v4.4.3 + with: + branch: gh-pages # The branch the action should deploy to. + folder: dist # The folder the action should deploy. + # You can specify additional configuration here as needed.