Skip to content

Commit

Permalink
Merge pull request #129 from ConsenSys/fix-actions
Browse files Browse the repository at this point in the history
Fix GitHub Actions to correctly publish docs and package
  • Loading branch information
blitz-1306 authored Jul 13, 2022
2 parents 0b38ee0 + 92e308b commit 1cfac32
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 42 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/docs.yaml
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
30 changes: 15 additions & 15 deletions .github/workflows/npm.yaml
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 }}

0 comments on commit 1cfac32

Please sign in to comment.