Include SE_CLEAR_CACHE and SE_CLEAR_METADATA in SM doc (#1725) #45
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: Publish Selenium Site | |
on: | |
push: | |
branches: | |
- trunk | |
jobs: | |
deploy: | |
if: contains(toJson(github.event.commits), '[deploy site]') == true | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@75d2e84710de30f6ff7268e08f310b60ef14033f | |
with: | |
hugo-version: ' 0.125.4' | |
extended: true | |
- name: Build | |
run: chmod +x build-site.sh && ./build-site.sh | |
env: | |
SELENIUM_CI_TOKEN: ${{secrets.SELENIUM_CI_TOKEN}} | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
personal_token: ${{ secrets.SELENIUM_CI_TOKEN }} | |
publish_dir: ./website_and_docs/public | |
publish_branch: publish | |
user_name: 'Selenium CI Bot' | |
user_email: '[email protected]' | |
commit_message: ${{ github.event.head_commit.message }} | |
cname: www.selenium.dev |