Update build.yml

main
Ven 2 years ago committed by GitHub
parent 259f0284f0
commit 6dd705f951
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -68,15 +68,14 @@ jobs:
git config --global user.name "$USERNAME" git config --global user.name "$USERNAME"
git config --global user.email actions@github.com git config --global user.email actions@github.com
git clone "https://oauth2:$API_TOKEN@github.com/$GH_REPO" upload git clone https://$USERNAME:$API_TOKEN@github.com/$GH_REPO.git upload
cd upload cd upload
shopt -s dotglob
rm -rf * rm -rf *
cp -r ../dist/* . cp -r ../dist/* .
git add -A git add -A
git commit -m "Builds for https://github.com/$GITHUB_REPOSITORY/commit/$GITHUB_SHA" git commit -m "Builds for https://github.com/$GITHUB_REPOSITORY/commit/$GITHUB_SHA"
git push --force https://oauth2:$API_TOKEN@github.com/$GH_REPO.git main git push --force https://$USERNAME:$API_TOKEN@github.com/$GH_REPO.git
env: env:
API_TOKEN: ${{ secrets.BUILDS_TOKEN }} API_TOKEN: ${{ secrets.BUILDS_TOKEN }}
GLOBIGNORE: .git:.gitignore:README.md:LICENSE GLOBIGNORE: .git:.gitignore:README.md:LICENSE

Loading…
Cancel
Save