diff options
-rw-r--r-- | .github/workflows/main.yml | 29 |
1 files changed, 29 insertions, 0 deletions
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 }} |