From 05253038c2fd32533b8b1d2bf610d935e9e9a851 Mon Sep 17 00:00:00 2001 From: Guido Genzone Date: Sat, 9 Dec 2023 12:15:42 +0100 Subject: [PATCH] Add deploy workflow --- .github/workflows/deploy.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 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..c031988 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,27 @@ +name: Deployment +on: + push: + branches: + - main + +permissions: + contents: write + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Use Node.js + uses: actions/setup-node@v2 + with: + node-version: 18.x + - name: Install Packages + run: npm install + - name: Build page + run: npm run build + - name: Deploy to gh-pages + uses: peaceiris/actions-gh-pages@v3 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./build