From fc987f8f5850b1c5a1431f82d9d9880a3d68fc53 Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Thu, 17 Jun 2021 11:12:23 +1000 Subject: [PATCH] Publish eth-dm on GH pages --- .github/workflows/deploy-gh-pages-eth-dm.yml | 51 ++++++++++++++++++++ examples/eth-dm/package.json | 1 + 2 files changed, 52 insertions(+) create mode 100644 .github/workflows/deploy-gh-pages-eth-dm.yml diff --git a/.github/workflows/deploy-gh-pages-eth-dm.yml b/.github/workflows/deploy-gh-pages-eth-dm.yml new file mode 100644 index 0000000000..b87d98f6a9 --- /dev/null +++ b/.github/workflows/deploy-gh-pages-eth-dm.yml @@ -0,0 +1,51 @@ +name: Eth DM Deploy GH Pages + +on: + push: + branches: + - '72-eth-dm' + +jobs: + deploy_gh_pages: + runs-on: ubuntu-latest + steps: + + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set git author identity + run: | + git config user.name "GitHub Action On js-waku Repo" + git config user.email "franck+ghpages@status.im" + + - name: Install NodeJS + uses: actions/setup-node@v2 + with: + node-version: '14' + + - name: Cache npm cache + uses: actions/cache@v2 + with: + path: ~/.npm + key: node-v1-${{ hashFiles('**/package-lock.json') }} + + - name: "[js-waku] install using npm ci" + uses: bahmutov/npm-install@v1 + + - name: "[js-waku] build" + run: npm run build + + - name: install eth dm using npm i + run: npm install + working-directory: examples/eth-dm + + - name: build eth dm + run: npm run build + working-directory: examples/eth-dm + + - name: Deploy eth dm app on gh pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./examples/eth-dm/build + destination_dir: eth-dm diff --git a/examples/eth-dm/package.json b/examples/eth-dm/package.json index cf9ba8e58b..4ede931b68 100644 --- a/examples/eth-dm/package.json +++ b/examples/eth-dm/package.json @@ -2,6 +2,7 @@ "name": "eth-dm", "version": "0.1.0", "private": true, + "homepage": "/js-waku/eth-dm", "dependencies": { "@testing-library/jest-dom": "^5.11.4", "@testing-library/react": "^11.1.0",