add docs to workspace #194
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: push stripped down version to main | |
on: push | |
jobs: | |
update: | |
if: github.ref == 'refs/heads/public' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: main | |
- run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
# need anvil | |
# - run: echo "TESTING degit" && npx degit wighawag/jolly-roger#dev __test__ && cd __test__ && npx pnpm i && npx pnpm template-test && cd .. && rm -Rf __test__ | |
- run: | | |
echo "fetching ${{ github.ref_name }}..." | |
git fetch origin ${{ github.ref_name }}:${{ github.ref_name }} | |
# completely copy from public | |
git reset origin/${{ github.ref_name }} --hard | |
- run: node transform.js | |
- run: | | |
git add -A | |
git commit -m "Transform branch ${{ github.ref_name }} into a generic template" | |
git push --force |