Skip to content

feat: add native banner for Flutter mediation plugin in version `1.0.… #49

feat: add native banner for Flutter mediation plugin in version `1.0.…

feat: add native banner for Flutter mediation plugin in version `1.0.… #49

Workflow file for this run

name: Deploy Website
on:
push:
branches:
- master
jobs:
deploy-website:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6.3
- name: Install Bundler
run: gem install bundler -v 2.1.4
- name: Install dependencies
run: bundle install
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install npm dependencies
run: npm install
- name: Build the site
run: npm run build
- name: Configure CNAME
run: echo "docs.tapsell.ir" > _site/CNAME
- name: Configure Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "tapsellCI"
git config --global url.https://${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/.insteadOf https://github.com/
- name: Deploy to GitHub Pages
env:
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
run: |
git clone https://github.com/tapsellorg/TapsellDocument.git
cd TapsellDocument
if [ `git branch --list gh-pages` ]; then
git checkout gh-pages
else
git checkout --orphan gh-pages
fi
rm -rf *
cp -r ../_site/* .
git add -A
git commit -m "update gh pages"
git push https://tapsellCI:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/tapsellorg/TapsellDocument.git gh-pages --force