From 24260d6a520e5ec4320705fbf0393e5fb95ea517 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Thu, 27 Jun 2024 05:18:36 -0400 Subject: autodeploy xesite Signed-off-by: Xe Iaso --- .github/workflows/earthly.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to '.github/workflows') diff --git a/.github/workflows/earthly.yml b/.github/workflows/earthly.yml index 881fde0..c7cd064 100644 --- a/.github/workflows/earthly.yml +++ b/.github/workflows/earthly.yml @@ -66,3 +66,29 @@ jobs: run: flyctl deploy --remote-only -c ./fly/patreon-saasproxy/fly.toml env: FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} + + deploy-xesite: + name: "Deploy xesite" + needs: build + runs-on: ubuntu-latest + permissions: + contents: read + if: github.ref == 'refs/heads/main' + + steps: + - uses: actions/checkout@v4 + - uses: superfly/flyctl-actions/setup-flyctl@master + - uses: dorny/paths-filter@v3 + id: changes + with: + filters: | + src: + - 'cmd/xesite/*.go' + - 'internal/**/*.go' + - 'go.mod' + - 'go.sum' + - 'Earthfile' + - if: steps.changes.outputs.src == 'true' + run: flyctl deploy --remote-only -c ./fly/xesite/fly.toml + env: + FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} \ No newline at end of file -- cgit v1.2.3