feat(): forced-compression #119
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 | ||
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: | ||
- 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/setup-node@v2.1.1 | ||
- name: Install Libvips | ||
- run: sudo apt-get update | ||
- run: sudo apt-get install ffmpeg libvips-dev gtk-doc-tools gobject-introspection | ||
- name: Install Dependencies | ||
run: npm i | ||
- name: Build | ||
run: npm run doc | ||
- name: Publish to Pages | ||
uses: crazy-max/ghaction-github-pages@v2 | ||
with: | ||
target_branch: gh-pages | ||
build_dir: docs | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |