Skip to content

VPN-6049 Build a fat-bin for vpnnp (#9000) #2155

VPN-6049 Build a fat-bin for vpnnp (#9000)

VPN-6049 Build a fat-bin for vpnnp (#9000) #2155

Workflow file for this run

name: Publish docs in the Wiki
on:
push:
branches:
- main
jobs:
sync-wiki:
runs-on: ubuntu-20.04
steps:
- name: Clone Code Repo
uses: actions/checkout@v3
with:
path: 'vpn'
repository: ''
- name: Check if Docs were Changed
uses: dorny/paths-filter@v2
id: changes
with:
working-directory: 'vpn'
filters: |
docs:
- 'docs/**'
- name: Clone Wiki Repo
if: steps.changes.outputs.docs == 'true'
shell: bash
run: |
git clone https://${{secrets.WIKI_TOKEN}}:@github.com/mozilla-mobile/mozilla-vpn-client.wiki.git wiki
- name: Update Contents
if: steps.changes.outputs.docs == 'true'
shell: bash
run: |
cd wiki
find . -name "*.md" -type f -delete
cd ..
cp -rf vpn/docs wiki/
- if: steps.changes.outputs.docs == 'true'
run: |
cd wiki
git config user.name github-actions
git config user.email ${{ secrets.WIKI_TOKEN_USER }}
git config user.password ${{secrets.WIKI_TOKEN}}
git add .
git commit -m "Push ${{ github.sha }} docs changes"
git push