Change summary
.github/workflows/ci.yml | 5 +++--
.github/workflows/soft-serve.yml | 22 ++++++++++++++++++++--
2 files changed, 23 insertions(+), 4 deletions(-)
Detailed changes
@@ -14,13 +14,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
- # Remove this later
- name: Clone internal repositories
run: |
git clone -b release https://${{ secrets.ACCESS_TOKEN }}@github.com/charmbracelet/charm-internal ../charm
git clone -b master https://${{ secrets.ACCESS_TOKEN }}@github.com/charmbracelet/bubbletea-internal ../bubbletea
- git clone -b master https://${{ secrets.ACCESS_TOKEN }}@github.com/charmbracelet/wish ../wish
+ git clone -b main https://${{ secrets.ACCESS_TOKEN }}@github.com/charmbracelet/wish ../wish
- name: Set up Go
uses: actions/setup-go@v2
@@ -14,9 +14,27 @@ jobs:
with:
fetch-depth: 0
+ - name: Clone internal repositories
+ run: |
+ git clone -b release https://${{ secrets.ACCESS_TOKEN }}@github.com/charmbracelet/charm-internal ../charm
+ git clone -b master https://${{ secrets.ACCESS_TOKEN }}@github.com/charmbracelet/bubbletea-internal ../bubbletea
+ git clone -b main https://${{ secrets.ACCESS_TOKEN }}@github.com/charmbracelet/wish ../wish
+
- name: Push to Soft-Serve
uses: charmbracelet/soft-serve-action@v1
with:
- server: "beta.charm.sh"
+ server: "git.charm.sh"
ssh-key: "${{ secrets.CHARM_SOFT_SERVE_KEY }}"
- name: "soft-serve"
+ name: "soft-serve"
+
+ - name: Push vendor to Soft-Serve
+ env:
+ SSH_AUTH_SOCK: /tmp/ssh_agent.sock
+ run: |
+ git config --global user.email "actions@github.com"
+ git config --global user.name "Charmbracelet[bot]"
+ git checkout -b vendor
+ go mod vendor
+ git add vendor
+ git commit -m 'vendor'
+ git push -f soft-serve vendor