aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/tigris-push.yml
blob: 08a0b29e6272b7fb84de4c0600f35ed6eacb7c3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Build and deploy site to Tigris

on:
  push:
    branches: [ "never" ]

jobs:
  deploy:
    runs-on: alrest-xe-site
    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: 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 }}