chore: update .build.yml
This commit is contained in:
1 file changed
+21
-7
+21
-7
@@ -1,13 +1,27 @@
|
|||||||
image: alpine/edge
|
image: alpine/edge
|
||||||
|
packages:
|
||||||
|
- git
|
||||||
|
|
||||||
secrets:
|
secrets:
|
||||||
- 88cce185-d2ec-4573-9546-e33f36f79bbf
|
- 88cce185-d2ec-4573-9546-e33f36f79bbf
|
||||||
sources:
|
|
||||||
- git+ssh://git@git.sr.ht/~swaits/typst-collection
|
environment:
|
||||||
|
# repo and user names on both sr.ht and github
|
||||||
|
REPO: typst-collection
|
||||||
|
USER: swaits
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- mirror-to-github: |
|
- clone: |
|
||||||
cd ~/typst-collection
|
git clone --origin origin "git+ssh://git@git.sr.ht/~$USER/$REPO"
|
||||||
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
|
|
||||||
# Explicitly fetch all branches & tags
|
- fetch-all-branches: |
|
||||||
|
cd "~/$REPO"
|
||||||
git fetch origin '+refs/heads/*:refs/heads/*' '+refs/tags/*:refs/tags/*' --prune
|
git fetch origin '+refs/heads/*:refs/heads/*' '+refs/tags/*:refs/tags/*' --prune
|
||||||
git remote add github git@github.com:swaits/typst-collection.git
|
|
||||||
|
- setup-github-remote: |
|
||||||
|
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
|
||||||
|
git remote add github "git@github.com:$USER/$REPO.git"
|
||||||
|
|
||||||
|
- mirror-to-github: |
|
||||||
|
cd "~/$REPO"
|
||||||
git push --mirror github
|
git push --mirror github
|
||||||
Reference in new issue
Block a user