-
Notifications
You must be signed in to change notification settings - Fork 24
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 #129 from ConsenSys/fix-actions
Fix GitHub Actions to correctly publish docs and package
- Loading branch information
Showing
2 changed files
with
42 additions
and
42 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
name: Build and release docs | ||
|
||
on: | ||
release: | ||
types: [published] | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build_deploy: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly. | ||
with: | ||
persist-credentials: false | ||
build_deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly. | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Install SSH Client 🔑 | ||
uses: webfactory/ssh-agent@v0.4.1 | ||
with: | ||
ssh-private-key: ${{ secrets.DEPLOY_KEY }} | ||
- uses: actions/setup-node@v2-beta | ||
with: | ||
node-version: '12' | ||
- name: Install SSH Client 🔑 | ||
uses: webfactory/ssh-agent@v0.4.1 | ||
with: | ||
ssh-private-key: ${{ secrets.DEPLOY_KEY }} | ||
- uses: actions/setup-node@v2-beta | ||
with: | ||
node-version: 16 | ||
|
||
- name: Install and build the documentation🔧 | ||
run: | | ||
npm install | ||
npm link | ||
npm run docs:refresh | ||
- name: Install and build the documentation🔧 | ||
run: | | ||
npm install | ||
npm link | ||
npm run docs:refresh | ||
- name: Deploy 🚀 | ||
uses: JamesIves/github-pages-deploy-action@3.7.1 | ||
with: | ||
BRANCH: docs | ||
FOLDER: docs | ||
SSH: true | ||
- name: Deploy 🚀 | ||
uses: JamesIves/github-pages-deploy-action@3.7.1 | ||
with: | ||
BRANCH: docs | ||
FOLDER: docs | ||
SSH: true |
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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
name: Build and release package | ||
name: Build and release package | ||
|
||
on: | ||
release: | ||
types: [ published ] | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
registry-url: 'https://registry.npmjs.org' | ||
- run: npm install | ||
- run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 16 | ||
registry-url: "https://registry.npmjs.org" | ||
- run: npm install | ||
- run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |