Skip to content

Commit 9c974ea

Browse files
committed
Modify workflow
1 parent 0af45cc commit 9c974ea

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,13 @@ jobs:
3434
- name: 🏗️ Run build
3535
run: yarn build
3636

37+
- name: 🏷️ Set version
38+
run: echo ${{ github.sha }} > ./dist/version
39+
3740
- name: 📤 Publish artifacts
3841
uses: peaceiris/actions-gh-pages@v4
3942
if: github.ref == 'refs/heads/main'
4043
with:
4144
github_token: ${{ secrets.GITHUB_TOKEN }}
4245
publish_branch: artifacts
4346
publish_dir: ./dist
44-
45-
- name: 🔗 Trigger parent repo
46-
if: github.repository == 'lncrawl/lncrawl-web' && github.ref == 'refs/heads/main'
47-
run: |
48-
curl -X POST \
49-
-H "Accept: application/vnd.github+json" \
50-
-H "Authorization: Bearer ${{ secrets.MAIN_REPO_TOKEN }}" \
51-
https://api.github.com/repos/lncrawl/lightnovel-crawler/dispatches \
52-
-d '{"event_type":"web-build-updated"}'

0 commit comments

Comments
 (0)