From 5df2367e04e0abec1c56ccfb7a1d38b0d81c0783 Mon Sep 17 00:00:00 2001 From: Marc Pervaz Boocha Date: Mon, 24 Jun 2024 13:02:25 +0530 Subject: Setup deployment --- .github/workflows/main.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/main.yml (limited to '.github/workflows') diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..199c9db --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,29 @@ +on: + push: + branches: [ main ] +jobs: + deploy: + runs-on: ubuntu-latest + permissions: + contents: read + deployments: write + name: Deploy to Cloudflare Pages + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup + uses: actions/setup-node@v4 + with: + node-version: '22.x' + - name: Install Deps + run: npm ci + - name: Build + run: npm run build + - name: Publish + uses: cloudflare/pages-action@v1 + with: + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + projectName: sudomsg-com + directory: dist/ + gitHubToken: ${{ secrets.GITHUB_TOKEN }} -- cgit v1.2.3-70-g09d2