forked from Tylian/XKit
-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d4a8db0
commit 1b07479
Showing
1 changed file
with
56 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Rebuild Distribution (7.9.2) | ||
|
||
on: | ||
push: | ||
branches: | ||
- '7.9.2' | ||
paths: | ||
- 'Extensions/*' | ||
- 'Themes/*' | ||
|
||
jobs: | ||
build: | ||
name: Autobuild extensions | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 14 | ||
|
||
- name: Configure git | ||
run: | | ||
git config --global user.name "github-actions" | ||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
- name: Fetch and reset gh-pages | ||
run: | | ||
git remote set-branches --add origin gh-pages | ||
git fetch | ||
git checkout -f -t -b gh-pages origin/gh-pages | ||
git reset --hard 7.9.2 | ||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Run tests | ||
run: npm test | ||
|
||
- name: Install gulp-cli | ||
run: npm install gulp-cli | ||
|
||
- name: Build distribution | ||
run: gulp build | ||
|
||
- name: Commit changes | ||
run: | | ||
git add --force Extensions/ | ||
git commit -m 'Rebuild Distribution' | ||
- name: Force-push to gh-pages | ||
run: git push -f |