diff --git a/.gitea/workflows/deploy.yaml b/.github/workflows/deploy.yaml similarity index 57% rename from .gitea/workflows/deploy.yaml rename to .github/workflows/deploy.yaml index bf654c0..0b133b2 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -19,13 +19,11 @@ jobs: - name: "Export org to md" run: emacs -Q --script export.el - run: npm run build - - name: "Deploy" - uses: appleboy/scp-action@v0.1.7 + - name: "Deploy to Cloudflare Pages" + uses: cloudflare/pages-action@v1 with: - host: ${{ secrets.HOST }} - username: ${{ secrets.USERNAME }} - key: ${{ secrets.KEY }} - port: ${{ secrets.PORT }} - source: docs/.vuepress/dist/* - target: ${{ secrets.DESTPATH }} - strip_components: 3 + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.ACCOUNT_ID }} + projectName: conlang-phundrak-com + directory: content/.vuepress/dist/ + githubToken: ${{ secrets.TOKEN }}