forked from MassTransit/MassTransit
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 1.06 KB
/
docs.yml
File metadata and controls
38 lines (33 loc) · 1.06 KB
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
35
name: MassTransit Documentation
on:
push:
branches:
- develop
paths:
- 'docs/**'
- 'package.json'
- '**/docs.yml'
jobs:
build:
name: Build and Deploy
runs-on: ubuntu-latest
if: (github.ref == 'refs/heads/develop') && github.repository == 'MassTransit/MassTransit'
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Build
run: |
npm install
npm run docs:build
- name: Deploy
working-directory: ./docs/.vuepress/dist
run: |
git init .
git config --global user.name "MassTransit"
git config --global user.email "mtproj@phatboyg.com"
git fetch https://github.com/MassTransit/masstransit.github.io.git
git checkout 220443cd2ab45d486fcee10a65669aff0bda31ab
git checkout -b master
git add .
git commit -am "Deploy Documentation"
git push --force --set-upstream https://${{secrets.PHATBOYG_PAT}}:x-oauth-basic@github.com/MassTransit/masstransit.github.io.git master