Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Commit

Permalink
build: publish latest release
Browse files Browse the repository at this point in the history
Closes #17
  • Loading branch information
coderbyheart committed Mar 25, 2020
1 parent 1b1e8b2 commit 6a38f37
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/test-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,17 @@ jobs:
run: |
npm i --no-save semantic-release
npx semantic-release
- name: Publish latest release to GitHub
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "machine github.com login authtoken password ${GITHUB_TOKEN}" > ~/.netrc
git config user.email "[email protected]"
git config user.name "GitHub Actions"
cd dist
git init
git add main.js
git add chatbutton.js
git commit -m 'latest release'
git remote add origin https://github.com/${GITHUB_REPOSITORY}.git
git push -f origin HEAD:gh-pages

0 comments on commit 6a38f37

Please sign in to comment.