mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-06-30 11:53:25 +00:00
Compare commits
2 Commits
v1.0.0-alp
...
v1.0.0-alp
Author | SHA1 | Date | |
---|---|---|---|
53d58f0bf0 | |||
2e4248e40e |
11
.github/workflows/release.yml
vendored
11
.github/workflows/release.yml
vendored
@ -37,12 +37,5 @@ jobs:
|
|||||||
|
|
||||||
- name: Update Dist
|
- name: Update Dist
|
||||||
run: |
|
run: |
|
||||||
cp dist/*.tar.gz upstream/dist/
|
chmod +x /scripts/upload_dist.sh
|
||||||
cp dist/*.zip upstream/dist/
|
./scripts/upload_dist.sh
|
||||||
cd upstream/dist
|
|
||||||
git config --local user.name 'Github Actions'
|
|
||||||
git config --local user.email 'github-actions@users.noreply.github.com'
|
|
||||||
git add --all
|
|
||||||
git commit -m "update to ${GITHUB_REF#"refs/tags/"}"
|
|
||||||
git push
|
|
||||||
|
|
||||||
|
19
scripts/upload_dist.sh
Normal file
19
scripts/upload_dist.sh
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ "$GITHUB_ACTIONS" != "true" ]; then
|
||||||
|
echo "This script is only meant to be run in GitHub Actions."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
cp -f dist/*.tar.gz upstream/dist/
|
||||||
|
cp -f dist/*.zip upstream/dist/
|
||||||
|
cd upstream/dist
|
||||||
|
LATEST_VERSION="${GITHUB_REF#"refs/tags/"}"
|
||||||
|
git config --local user.name 'Github Actions'
|
||||||
|
git config --local user.email 'github-actions@users.noreply.github.com'
|
||||||
|
git add --all
|
||||||
|
git commit -m "update to $LATEST_VERSION"
|
||||||
|
git tag -d "${GITHUB_REF#"refs/tags/"}"
|
||||||
|
git tag "${GITHUB_REF#"refs/tags/"}"
|
||||||
|
git push
|
||||||
|
git push --tags
|
Reference in New Issue
Block a user