-
-
Notifications
You must be signed in to change notification settings - Fork 92
39 lines (34 loc) · 1.1 KB
/
es_docs_deploy.yaml
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
36
37
38
39
name: ES Docs Build and Deploy
on:
push:
branches: [main]
paths:
- "docs/event-sourcing/**"
workflow_dispatch:
inputs:
reason:
description: "The reason for running the workflow"
required: true
default: "Manual run"
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@main
- name: Build
working-directory: ./docs/event-sourcing/
run: |
npm install
npm run build
- name: Deploy
working-directory: ./docs/event-sourcing/src/.vuepress/dist
run: |
git init .
git config --global user.name "CosmosEventSourcing"
git config --global user.email "[email protected]"
git fetch https://github.com/mumby0168/cosmos-event-sourcing-docs.git
git checkout -b main
git add .
git commit -am "Deploy Documentation"
git push --force --set-upstream https://${{secrets.MUMBY0168_ACCESS_TOKEN}}:[email protected]/mumby0168/cosmos-event-sourcing-docs.git main