name: Deploy cursed.graphics on: push: branches: - master paths: - '.github/workflows/deploy-cursed-graphics.yml' - 'sites/cursed.graphics/**' jobs: deploy: name: Production Deployment runs-on: ubuntu-latest environment: production permissions: contents: read deployments: write steps: - name: Checkout master uses: actions/checkout@v4 - name: Install Rust Toolchain uses: actions-rs/toolchain@v1 with: toolchain: stable - name: Install worker-build uses: dtolnay/install@master with: crate: worker-build - name: Build Edge Worker uses: cloudflare/wrangler-action@v3 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} gitHubToken: ${{ secrets.GITHUB_TOKEN }} workingDirectory: sites/cursed.graphics