Created
July 26, 2020 21:14
-
-
Save simenandre/edb4b08b4d98fe9875a47330081de7e7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| ... | |
| steps | |
| - uses: actions/checkout@v2 | |
| ... | |
| - run: npm run build // creates dist/ | |
| - run: | | |
| git clone --depth 1 https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/<insert-repo-name, eg. cobraz/hello>.git /<insert-repo-name> | |
| cp -R dist/ /<insert-repo-name>/<where you want em> | |
| cd /<insert-repo-name> | |
| git add . | |
| git commit -m "chore: add new dist folder" | |
| git push | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment