-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #423 from andywang425/dev
workflow test
- Loading branch information
Showing
4 changed files
with
3,858 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,16 +33,13 @@ jobs: | |
- name: Build | ||
run: npm run build | ||
|
||
- name: Temporarily remove 'dist' from .gitignore | ||
- name: Remove 'dist' from .gitignore | ||
run: sed -i '/dist/d' .gitignore | ||
|
||
- name: Commit and push if there are changes | ||
run: | | ||
git config --local user.email "action@github.com" | ||
git config --local user.email "[email protected].github.com" | ||
git config --local user.name "GitHub Action" | ||
git add dist/* | ||
git diff --quiet && git diff --staged --quiet || git commit -m "Automated build" | ||
git push | ||
- name: Restore .gitignore | ||
run: echo "dist" >> .gitignore |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.