Merge pull request #95 from DECIPHER-genomics/ashimiblessing-patch-1 #19
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: update gh-pages | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: yarn install | |
- name: Update gh-pages | |
run: | | |
echo $GITHUB_ACTOR | |
git config --local user.email "[email protected]" | |
git config --local user.name $GITHUB_ACTOR | |
git fetch --all | |
git checkout gh-pages | |
git pull | |
git reset --hard origin/master | |
rm -rf dist | |
- run: yarn build --env public-path=/Genoverse/dist/ | |
- name: Commit and push files | |
run: | | |
echo $GITHUB_ACTOR | |
git config --local user.email "[email protected]" | |
git config --local user.name $GITHUB_ACTOR | |
git add -f dist | |
git commit -m "Added dist folder" | |
git push --force origin gh-pages |