1name: Soft-Serve
2
3on:
4 push:
5 branches:
6 - main
7
8jobs:
9 softserve:
10 runs-on: ubuntu-latest
11 steps:
12 - name: Checkout code
13 uses: actions/checkout@v2
14 with:
15 fetch-depth: 0
16
17 - name: Clone internal repositories
18 run: |
19 git clone -b release https://${{ secrets.ACCESS_TOKEN }}@github.com/charmbracelet/charm-internal ../charm
20 git clone -b master https://${{ secrets.ACCESS_TOKEN }}@github.com/charmbracelet/bubbletea-internal ../bubbletea
21 git clone -b main https://${{ secrets.ACCESS_TOKEN }}@github.com/charmbracelet/wish ../wish
22
23 - name: Push to Soft-Serve
24 uses: charmbracelet/soft-serve-action@v1
25 with:
26 server: "git.charm.sh"
27 ssh-key: "${{ secrets.CHARM_SOFT_SERVE_KEY }}"
28 name: "soft-serve"
29
30 - name: Push vendor to Soft-Serve
31 env:
32 SSH_AUTH_SOCK: /tmp/ssh_agent.sock
33 run: |
34 git config --global user.email "actions@github.com"
35 git config --global user.name "Charmbracelet[bot]"
36 git checkout -b vendor
37 go mod vendor
38 git add vendor
39 git commit -m 'vendor'
40 git push -f soft-serve vendor