when:
  - event: push
    branch:
      - ${CI_REPO_DEFAULT_BRANCH}
    path:
      - get_prymn.sh

steps:
  release:
    image: woodpeckerci/plugin-s3
    settings:
      bucket: prymn-static
      region: auto
      endpoint:
        from_secret: R2_STATIC_ADDRESS
      access_key:
        from_secret: R2_DEPLOY_ACCESS_KEY
      secret_key:
        from_secret: R2_DEPLOY_SECRET_KEY
      source: get_prymn.sh
      target: /agent