diff options
| author | Xe Iaso <me@xeiaso.net> | 2024-07-12 11:20:57 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2024-07-12 11:21:08 -0400 |
| commit | e3b77228e1c6c272a8016bce572ae81bb8794891 (patch) | |
| tree | 22e6d4d892ea2f3f7bd7e9b577bbacdaf3f616c8 /.github | |
| parent | dc020774e5cd9fa2366484b3e18e583c1e2c5204 (diff) | |
| download | xesite-e3b77228e1c6c272a8016bce572ae81bb8794891.tar.xz xesite-e3b77228e1c6c272a8016bce572ae81bb8794891.zip | |
push to Tigris
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/tigris-push.yml | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/.github/workflows/tigris-push.yml b/.github/workflows/tigris-push.yml new file mode 100644 index 0000000..e34a64e --- /dev/null +++ b/.github/workflows/tigris-push.yml @@ -0,0 +1,63 @@ +name: Build and deploy site to Tigris + +on: + push: + branches: [ "main" ] + +jobs: + deploy: + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v4 + + - name: Set up Homebrew + uses: Homebrew/actions/setup-homebrew@master + + - name: Setup Homebrew cellar cache + uses: actions/cache@v4 + with: + path: | + ~/.linuxbrew/Cellar + key: ${{ runner.os }}-homebrew-cellar-${{ hashFiles('Brewfile.lock.json') }} + restore-keys: | + ${{ runner.os }}-homebrew-cellar- + + - name: Install Brew dependencies + run: | + brew bundle + + - name: Setup Golang caches + uses: actions/cache@v4 + with: + path: | + ~/.cache/go-build + ~/go/pkg/mod + key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-golang- + + - name: cache deno.land dependencies + uses: actions/cache@v2 + with: + key: ${{ runner.os }}-deno-${{ hashFiles('**/*') }} + restore-keys: ${{ runner.os }}-deno- + path: | + /home/runner/.cache/deno + + - name: Tailscale + uses: tailscale/github-action@v2 + with: + oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }} + oauth-secret: ${{ secrets.TS_OAUTH_SECRET }} + tags: tag:ci + + - name: Build and deploy xesite + run: | + go run ./cmd/fabricate-generation + env: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS_ENDPOINT_URL_S3: "https://fly.storage.tigris.dev" + AWS_REGION: auto + MIMI_ANNOUNCE_URL: ${{ secrets.MIMI_ANNOUNCE_URL }} +
\ No newline at end of file |
