name: deploy-cloudflare on: push: branches: [main] workflow_dispatch: {} concurrency: group: cloudflare-deploy-${{ forgejo.ref }} cancel-in-progress: true jobs: deploy: # Use Codeberg global hosted runners by label. # Available labels in this repo are: codeberg-tiny, codeberg-small, codeberg-medium. runs-on: codeberg-medium steps: - name: Deploy website + worker env: CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} run: | set -euo pipefail if ! command -v nix >/dev/null 2>&1; then curl -L https://nixos.org/nix/install | sh -s -- --no-daemon . "$HOME/.nix-profile/etc/profile.d/nix.sh" fi nix --version ./scripts/deploy-workers.sh