feat(feature/group-invite-v4): initial/final commit (#958) #218
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |