XKit Patches: Fix patching 7.10.0 #98
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
name: Rebuild Distribution | |
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 |