Merge pull request #147 from OneKeyHQ/fix/nostr-event #408
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
name: test_web | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main,master] | |
pull_request: | |
branches: [main,master] | |
jobs: | |
test_web: | |
runs-on: ubuntu-latest | |
env: | |
TEST_ENDPOINT: dapp-example.onekeytest.com | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Environment | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16.x | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install Dependency | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
echo 'skipped yarn install at workspace root' | |
- name: Build Target | |
run: | | |
yarn example-build | |
cp ./packages/example/out/index.html ./packages/example/out/404.html | |
- name: Deploy Github Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./packages/example/out | |
cname: ${{ env.TEST_ENDPOINT }} | |
force_orphan: true |