Skip to content

Commit

Permalink
Push vendor to git.charm.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Oct 18, 2021
1 parent d04958c commit 86140b2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
22 changes: 20 additions & 2 deletions .github/workflows/soft-serve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]"
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

0 comments on commit 86140b2

Please sign in to comment.