File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name: Update Docs
2+
3+ on:
4+ push:
5+ branches:
6+ - master
7+ jobs:
8+ Build:
9+ runs-on: ubuntu-latest
10+ outputs:
11+ package-name: ${{ steps.packageInfo.outputs.package-name }}
12+ package-version: ${{ steps.packageInfo.outputs.package-version }}
13+ commit-msg: ${{ steps.packageInfo.outputs.commit-msg }}
14+ # Steps represent a sequence of tasks that will be executed as part of the job
15+ steps:
16+ - name: Checkout Commit
17+ uses: actions/checkout@v2
18+
19+ - name: Parsing Package Info
20+ id: packageInfo
21+ run: |
22+ echo "::set-output name=package-name::$(jq -r .name package.json)"
23+ echo "::set-output name=package-version::$(jq -r .version package.json)"
24+ echo "::set-output name=commit-msg::$(git log -1 --pretty=%B)"
25+
26+ - name: Setup Node.js environment
27+ uses: actions/setup-node@v2.1.1
28+
29+ - name: Install Dependencies
30+ run: yarn
31+
32+ - name: Build
33+ run: yarn run build:all
34+
35+ - name: Publish to Pages
36+ uses: crazy-max/ghaction-github-pages@v2
37+ with:
38+ target_branch: gh-pages
39+ build_dir: docs
40+ env:
41+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments