-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #135 from ecadlabs/ci_fix
chore: ci fixes
- Loading branch information
Showing
5 changed files
with
77 additions
and
51 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Publish signatory.io website | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
publish-docs: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: website | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.x | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- name: install npm deps | ||
run: npm ci | ||
- name: Publish to Github pages | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.DEPLOY_GITHUB_TOKEN }} | ||
GITHUB_EMAIL: ${{ secrets.DEPLOY_GITHUB_EMAIL }} | ||
GIT_USER: ${{ secrets.DEPLOY_GITHUB_USER }} | ||
CURRENT_BRANCH: $GITHUB_REF | ||
run: | | ||
git config --global user.email "$GITHUB_EMAIL" | ||
git config --global user.name "$GITHUB_ACTOR" | ||
echo "machine github.com login $GIT_USER password $GITHUB_TOKEN" > ~/.netrc | ||
cat ~/.netrc | ||
GIT_USER=${GIT_USER} npm run deploy |
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
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