Merge pull request #701 from xml-project/edit-test-description #63
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: build-specs | |
on: push | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
env: | |
HAVE_ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN != '' }} | |
PUBLISH_TESTS_FROM: "master" | |
BRANCH_NAME: ${{ github.ref_name }} | |
steps: | |
- name: Checkout the site | |
uses: actions/checkout@v3 | |
- name: Build | |
run: | | |
./gradlew website | |
- name: Deploy master to specifications | |
if: ${{ env.HAVE_ACCESS_TOKEN == 'true' && github.ref_name == 'master' }} | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: build/html | |
token: ${{ secrets.ACCESS_TOKEN }} | |
branch: gh-pages | |
target-folder: / |