forked from SeleniumHQ/seleniumhq.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 1.03 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Publish Selenium Site
on:
push:
branches:
- dev
jobs:
deploy:
# Skip job based on the commit message
if: contains(toJson(github.event.commits), '[skip ci]') == false
runs-on: ubuntu-18.04
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.66.0'
- name: Build
run: chmod +x build-site.sh && ./build-site.sh
env:
SELENIUM_CI_TOKEN: ${{secrets.SELENIUM_CI_TOKEN}}
- name: Deploy
if: contains(toJson(github.event.commits), '[deploy site]') == true
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.SELENIUM_CI_TOKEN }}
publish_dir: ./site_source_files/public
publish_branch: publish
user_name: 'Selenium CI Bot'
user_email: '[email protected]'
commit_message: ${{ github.event.head_commit.message }}
cname: www.selenium.dev