diff options
| author | Xe Iaso <me@xeiaso.net> | 2024-06-27 05:18:36 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2024-06-27 05:18:36 -0400 |
| commit | 24260d6a520e5ec4320705fbf0393e5fb95ea517 (patch) | |
| tree | 9443cca23eef29842197836da8888644a447b76c /.github/workflows/earthly.yml | |
| parent | 2d838e5fb1f1abba1d5a5d22dc296bd4f7f1e14a (diff) | |
| download | xesite-24260d6a520e5ec4320705fbf0393e5fb95ea517.tar.xz xesite-24260d6a520e5ec4320705fbf0393e5fb95ea517.zip | |
autodeploy xesite
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to '.github/workflows/earthly.yml')
| -rw-r--r-- | .github/workflows/earthly.yml | 26 |
1 files changed, 26 insertions, 0 deletions
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 |
