Skip to content

Instantly share code, notes, and snippets.

@simenandre
Created July 26, 2020 21:14
Show Gist options
  • Select an option

  • Save simenandre/edb4b08b4d98fe9875a47330081de7e7 to your computer and use it in GitHub Desktop.

Select an option

Save simenandre/edb4b08b4d98fe9875a47330081de7e7 to your computer and use it in GitHub Desktop.
...
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