aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/earthly.yml23
1 files changed, 22 insertions, 1 deletions
diff --git a/.github/workflows/earthly.yml b/.github/workflows/earthly.yml
index 7ae5381..194cef1 100644
--- a/.github/workflows/earthly.yml
+++ b/.github/workflows/earthly.yml
@@ -39,4 +39,25 @@ jobs:
id: build
run: |
earthly +xesite
- earthly +patreon-saasproxy \ No newline at end of file
+ earthly +patreon-saasproxy
+ deploy-patreon:
+ name: "Deploy patreon-saasproxy"
+ needs: build
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+
+ steps:
+ - uses: actions/checkout@v4
+ - uses: superfly/flyctl-actions/setup-flyctl@master
+ - uses: dorny/paths-filter@v3
+ id: changes
+ with:
+ filters: |
+ src:
+ - '/cmd/patreon-saasproxy/*.go'
+ - './internal/**/*.go'
+ - if: steps.changes.outputs.src == 'true'
+ run: flyctl deploy --remote-only -c ./fly/patreon-saasproxy/fly.toml
+ env:
+ FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} \ No newline at end of file