VPN-6049 Build a fat-bin for vpnnp (#9000) #2155
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: 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 | |