Skip to content

Fixed execution-apis spec version to specific commit + added API Reference docs to README #108

Fixed execution-apis spec version to specific commit + added API Reference docs to README

Fixed execution-apis spec version to specific commit + added API Reference docs to README #108

Workflow file for this run

name: Publish Release
on:
pull_request:
types: [closed]
jobs:
publish-release:
permissions:
contents: write
# The second argument to startsWith() must match the release-branch-prefix
# input to this Action. Here, we use the default, "release/".
if: |
github.event.pull_request.merged == true &&
startsWith(github.event.pull_request.head.ref, 'release/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get Node.js version
id: nvm
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc)
- uses: actions/setup-node@v2
with:
node-version: ${{ steps.nvm.outputs.NODE_VERSION }}
- uses: MetaMask/action-publish-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: yarn --frozen-lockfile
- name: Get release version
id: version
run: |
PREFIX='release/'
echo ::set-output name=NEW_VERSION::${GITHUB_HEAD_REF#"$PREFIX"}
- run: yarn build
- name: Deploy Version
uses: peaceiris/actions-gh-pages@068dc23d9710f1ba62e86896f84735d869951305
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: dist/build
destination_dir: ${{ steps.version.outputs.NEW_VERSION }}
- name: Deploy Latest
uses: peaceiris/actions-gh-pages@068dc23d9710f1ba62e86896f84735d869951305
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: dist/build
destination_dir: latest