86140b21ff5aaa3e604f00e23bf3819c3d2e11b8
- Author
- Ayman Bagabas <ayman.bagabas@gmail.com>
- Committer
- Ayman Bagabas <ayman.bagabas@gmail.com>
- Date
Message
Push vendor to git.charm.sh
Diff
1diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
2index ca1a89a08c141d377cbdf4951e8a514c228300cb..9000bd8ccbcb641f32a79320fa20dd97d354f9b7 100644
3--- a/.github/workflows/ci.yml
4+++ b/.github/workflows/ci.yml
5@@ -14,13 +14,14 @@ jobs:
6 runs-on: ubuntu-latest
7 steps:
8 - uses: actions/checkout@v2
9+ with:
10+ fetch-depth: 0
11
12- # Remove this later
13 - name: Clone internal repositories
14 run: |
15 git clone -b release https://${{ secrets.ACCESS_TOKEN }}@github.com/charmbracelet/charm-internal ../charm
16 git clone -b master https://${{ secrets.ACCESS_TOKEN }}@github.com/charmbracelet/bubbletea-internal ../bubbletea
17- git clone -b master https://${{ secrets.ACCESS_TOKEN }}@github.com/charmbracelet/wish ../wish
18+ git clone -b main https://${{ secrets.ACCESS_TOKEN }}@github.com/charmbracelet/wish ../wish
19
20 - name: Set up Go
21 uses: actions/setup-go@v2
22diff --git a/.github/workflows/soft-serve.yml b/.github/workflows/soft-serve.yml
23index 311bb63f478aaeb2b7b0d93f3da03d7da35a34a2..a6054e29a9b4559cf75e30a168c00b6903b0ed48 100644
24--- a/.github/workflows/soft-serve.yml
25+++ b/.github/workflows/soft-serve.yml
26@@ -14,9 +14,27 @@ jobs:
27 with:
28 fetch-depth: 0
29
30+ - name: Clone internal repositories
31+ run: |
32+ git clone -b release https://${{ secrets.ACCESS_TOKEN }}@github.com/charmbracelet/charm-internal ../charm
33+ git clone -b master https://${{ secrets.ACCESS_TOKEN }}@github.com/charmbracelet/bubbletea-internal ../bubbletea
34+ git clone -b main https://${{ secrets.ACCESS_TOKEN }}@github.com/charmbracelet/wish ../wish
35+
36 - name: Push to Soft-Serve
37 uses: charmbracelet/soft-serve-action@v1
38 with:
39- server: "beta.charm.sh"
40+ server: "git.charm.sh"
41 ssh-key: "${{ secrets.CHARM_SOFT_SERVE_KEY }}"
42- name: "soft-serve"
43+ name: "soft-serve"
44+
45+ - name: Push vendor to Soft-Serve
46+ env:
47+ SSH_AUTH_SOCK: /tmp/ssh_agent.sock
48+ run: |
49+ git config --global user.email "actions@github.com"
50+ git config --global user.name "Charmbracelet[bot]"
51+ git checkout -b vendor
52+ go mod vendor
53+ git add vendor
54+ git commit -m 'vendor'
55+ git push -f soft-serve vendor