Merge pull request #17 from virtual-labs/main #10
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
# This workflow is used to build the experiment and push it to github pages | |
name: Deploy Testing Branch | |
on: | |
push: | |
# mentioning which branch should be used to build the experimnet | |
branches: | |
- testing | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
check-latest: true | |
- run: | | |
git clone --depth=1 https://github.com/virtual-labs/ph3-lab-mgmt | |
cd ph3-lab-mgmt | |
npm install | |
npm run build-exp | |
cd ../ | |
git config --local user.email "[email protected]" | |
git config --local user.name "vleadadmin" | |
git checkout --orphan gh-pages | |
git reset | |
git add build/* -f | |
git mv build/* ./ -f | |
git commit -m "https://virtual-labs.github.io/${{ github.repository }} click on the link to test your code." | |
- uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.ORG_OWNER_GITHUB_TOKEN }} | |
force: true | |
branch: gh-pages | |
# Reference : https://github.com/marketplace/actions/github-push |