From 129d7126e9049d5f48605c85a9c6ca8de07644ed Mon Sep 17 00:00:00 2001 From: Enijar Date: Mon, 22 Jan 2024 12:33:42 +0000 Subject: [PATCH] ci --- .github/workflows/deploy.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 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..85096b5 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,34 @@ +name: Deploy + +on: + push: + branches: + - main + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v2.4.0 + with: + lfs: true + persist-credentials: false + + - name: Install and Build 🔧 + run: | + npm ci + PUBLIC_PATH=./ npm run build + + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@4.1.8 + with: + token: ${{ secrets.GITHUB_TOKEN }} + branch: gh-pages + folder: build + clean: true + + - name: Slack Notification + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_DEPLOYMENTS }}