From 4b498cef6add2e7342a24f7598ed47b32086ae54 Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 12 Nov 2023 03:45:23 -0500 Subject: feat: use gha to build/deploy --- .github/workflows/deploy.yaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/deploy.yaml (limited to '.github/workflows/deploy.yaml') diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..23ba2c8 --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -0,0 +1,34 @@ +name: deploy + +on: + push: + workflow_dispatch: + +jobs: + ci: + uses: ./.github/workflows/ci.yaml + permissions: + security-events: write + + deploy: + needs: ci + runs-on: ubuntu-latest + + permissions: + deployments: write + + steps: + - name: download dist + uses: actions/download-artifact@v3 + with: + name: dist + path: dist + + - name: deploy to cloudflare pages + uses: cloudflare/pages-action@v1 + with: + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + projectName: teawieapi + directory: dist + gitHubToken: ${{ github.token }} -- cgit v1.2.3