From ca45be57fbe76164692b352b471c1fb45ac6cfa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Gonz=C3=A1lez=20V=C3=A1zquez?= Date: Sun, 22 Oct 2023 17:41:30 -0600 Subject: [PATCH] Added cloudflare pages deploy --- .gitea/workflows/deploy.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .gitea/workflows/deploy.yaml diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..1a725b8 --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,22 @@ +on: [push] +jobs: + deploy: + runs-on: ubuntu-latest + permissions: + contents: read + deployments: write + name: Deploy to Cloudflare Pages + steps: + - name: Checkout + uses: actions/checkout@v3 + # Run your project's build step + - name: Build + run: npm install && npm run build + - name: Publish + uses: cloudflare/pages-action@1 + with: + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + projectName: 'rafa-page' # e.g. 'my-project' + directory: 'dist' # e.g. 'dist' + gitHubToken: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file