Skip to content

Merge pull request #950 from WhiskeySockets/revert-926-master #211

Merge pull request #950 from WhiskeySockets/revert-926-master

Merge pull request #950 from WhiskeySockets/revert-926-master #211

Workflow file for this run

name: Update Docs
permissions:
contents: write
on:
push:
branches:
- master
jobs:
Build:
runs-on: ubuntu-latest
outputs:
package-name: ${{ steps.packageInfo.outputs.package-name }}
package-version: ${{ steps.packageInfo.outputs.package-version }}
commit-msg: ${{ steps.packageInfo.outputs.commit-msg }}
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout Commit
uses: actions/checkout@v2
- name: Parsing Package Info
id: packageInfo
run: |
echo "::set-output name=package-name::$(jq -r .name package.json)"
echo "::set-output name=package-version::$(jq -r .version package.json)"
echo "::set-output name=commit-msg::$(git log -1 --pretty=%B)"
- name: Setup Node.js environment
uses: actions/[email protected]
- name: Install Dependencies
run: yarn
- name: Build
run: yarn run build:all
- name: Publish to Pages
uses: peaceiris/actions-gh-pages@v3
with:
publish_branch: gh-pages
publish_dir: ./docs
cname: baileys.whiskeysockets.io
github_token: ${{ secrets.GITHUB_TOKEN }}