Skip to content

Document path alias in linking #1129

Document path alias in linking

Document path alias in linking #1129

Workflow file for this run

name: Deploy
on:
workflow_dispatch:
push:
branches:
- main
jobs:
deploy:
name: Deploy to Github Pages
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: ./.github/actions/setup
# - name: Use crowdin
# run: |
# wget -c https://artifacts.crowdin.com/repo/deb/crowdin.deb -O crowdin.deb
# sudo dpkg -i crowdin.deb
# - name: Sync with crowdin
# env:
# CROWDIN_DOCUSAURUS_PROJECT_ID: react-navigation
# CROWDIN_DOCUSAURUS_API_KEY: ${{ secrets.CROWDIN_DOCUSAURUS_API_KEY }}
# run: |
# yarn crowdin-upload
# yarn crowdin-download
- name: Update sponsors list
env:
GITHUB_TOKEN: ${{ secrets.DEPLOY_GITHUB_TOKEN }}
run: yarn fetch-sponsors
- name: Publish to Github pages
env:
GITHUB_TOKEN: ${{ secrets.DEPLOY_GITHUB_TOKEN }}
GITHUB_EMAIL: ${{ secrets.DEPLOY_GITHUB_EMAIL }}
GIT_USER: ${{ secrets.DEPLOY_GITHUB_USER }}
CURRENT_BRANCH: $GITHUB_REF
run: |
git config --global user.email "$GITHUB_EMAIL"
git config --global user.name "$GITHUB_ACTOR"
echo "machine github.com login $GIT_USER password $GITHUB_TOKEN" > ~/.netrc
yarn deploy