Skip to content

Added gh-pages and DocFX docgen #3

Added gh-pages and DocFX docgen

Added gh-pages and DocFX docgen #3

Workflow file for this run

name: CI
on:
push:
branches:
- master
jobs:
release:
name: Release
runs-on: ubuntu-latest
env:
PKG_ROOT: "Assets/Adrenak.UnityOpus"
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Check if README.md has changed
id: readme_check
run: |
if git diff --name-only HEAD~1 HEAD | grep -q "README.md"; then
echo "README_CHANGED=true" >> $GITHUB_ENV
else
echo "README_CHANGED=false" >> $GITHUB_ENV
fi
- name: Update package README
if: env.README_CHANGED == 'true'
run: |
cp README.md "$PKG_ROOT/README.md"
git config --global user.name 'github-bot'
git config --global user.email '[email protected]'
git commit -am "Updated package README from root README"
git push -f -u origin master
- name: Create UPM branch
run: |
git branch -d upm &> /dev/null || echo upm branch not found
git subtree split -P "$PKG_ROOT" -b upm
git checkout upm
if [[ -d "Samples" ]]; then
git mv Samples Samples~
rm -f Samples.meta
git config --global user.name 'github-bot'
git config --global user.email '[email protected]'
git commit -am "fix: Samples => Samples~"
fi
git push -f -u origin upm