parent
e4f417a8ff
commit
99fd0c09a7
|
@ -5,6 +5,11 @@ jobs:
|
|||
container:
|
||||
image: rust:slim-bookworm
|
||||
steps:
|
||||
- run: |
|
||||
echo "git remote add origin ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}"
|
||||
TOKEN=$(echo -n "x-access-token:${GITHUB_TOKEN}" | base64)
|
||||
echo "git -c http.extraHeader=Authorization: Basic ${TOKEN} push origin -d pages"
|
||||
echo "git -c http.extraHeader=Authorization: Basic ${TOKEN} push -u origin pages"
|
||||
- run: apt-get update -y && apt-get install -y nodejs git curl
|
||||
- run: |
|
||||
curl -L https://github.com/trunk-rs/trunk/releases/download/v0.19.1/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf-
|
||||
|
@ -15,7 +20,7 @@ jobs:
|
|||
- run: |
|
||||
cd dist
|
||||
git init
|
||||
git remote add origin "${GITHUB_REPOSITORY}/${GITHUB_REPOSITORY_OWNER}"
|
||||
git remote add origin "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}"
|
||||
TOKEN=$(echo -n "x-access-token:${GITHUB_TOKEN}" | base64)
|
||||
git -c http.extraHeader="Authorization: Basic ${TOKEN}" push origin -d pages
|
||||
git checkout -b pages
|
||||
|
|
Loading…
Reference in a new issue