refactor: @rickzhou/react-ui
#55
Workflow file for this run
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: SYNC APP REPO | |
on: | |
- push | |
jobs: | |
repl: | |
runs-on: ubuntu-latest | |
steps: | |
# https://github.com/actions/checkout | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3 | |
- name: Push 📦 | |
env: | |
EMAIL: [email protected] | |
USERNAME: Rick.Zhou | |
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
REPO: github.com/rick-chou/repl.git | |
run: | | |
yarn | |
cd projects/@rick-repl | |
npm ci | |
npm run build | |
cd dist | |
cp index.html 404.html | |
git init | |
git config --global user.email $EMAIL | |
git config --global user.name $USERNAME | |
git remote add origin https://$ACCESS_TOKEN@$REPO | |
git checkout -b gh-pages | |
git add . | |
git commit -m "🌈 @rickzhou/repl" | |
git push -f --set-upstream origin gh-pages |