mirror of
https://github.com/storytold/spark.git
synced 2026-10-18 00:22:59 +00:00
Fix build workflow
This commit is contained in:
@@ -9,7 +9,7 @@ jobs:
|
|||||||
build-dist:
|
build-dist:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Generate GitHub App token
|
- name: Generate GitHub App token
|
||||||
id: generate-token
|
id: generate-token
|
||||||
uses: tibdex/github-app-token@v2
|
uses: tibdex/github-app-token@v2
|
||||||
@@ -44,10 +44,9 @@ jobs:
|
|||||||
git commit -m "Bump dist build" || echo "No build changes"
|
git commit -m "Bump dist build" || echo "No build changes"
|
||||||
|
|
||||||
SHA=$(git rev-parse HEAD)
|
SHA=$(git rev-parse HEAD)
|
||||||
mkdir -p dist
|
|
||||||
echo "$SHA" > dist/commit.txt
|
echo "$SHA" > dist/commit.txt
|
||||||
|
|
||||||
git add dist/commit.txt
|
git add dist/commit.txt
|
||||||
git commit -m "Update main CDN URL. (https://cdn.jsdelivr.net/gh/sparkjsdev/spark@$SHA/dist/spark.module.js)" || echo "No SHA change"
|
git commit -m "Update main CDN URL. (https://cdn.jsdelivr.net/gh/sparkjsdev/spark@$SHA/dist/spark.module.js)"
|
||||||
|
|
||||||
git push origin HEAD:main
|
git push origin HEAD:main
|
||||||
|
|||||||
Reference in New Issue
Block a user