From 84da822a04cef8eea503fa4473c6c2227ba71591 Mon Sep 17 00:00:00 2001 From: Agustin Ramiro Diaz Date: Sun, 23 Jul 2023 22:09:18 -0300 Subject: [PATCH] Add GH actions for deploy Signed-off-by: Agustin Ramiro Diaz --- .github/workflows/gh-pages.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/gh-pages.yml diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 000000000..bc8053ba8 --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,26 @@ +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Setup Node + uses: actions/setup-node@v1 + with: + node-version: 18 + + - run: npm install + - run: npm ci + + - run: npm run build + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + publish_dir: ./_site + github_token: ${{ secrets.GITHUB_TOKEN }}