diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000000..b54408558c --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -0,0 +1,25 @@ +name: Test and Deploy + +on: + push: + branches: [ main ] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version: "14.x" + - name: Install node modules + run: npm ci + - name: Build + run: npm run build + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@4.0.0 + with: + branch: gh-pages # The branch the action should deploy to. + folder: dist/ # The folder the action should deploy. + single-commit: false # "false" here means "preserve git history on the gh-pages branch" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ebd18f91fd..9a36127654 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,29 +1,23 @@ # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions -name: Node.js CI +name: Test on: - push: - branches: [ main ] pull_request: branches: [ main ] jobs: test: - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [14.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ - steps: - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js uses: actions/setup-node@v1 with: - node-version: ${{ matrix.node-version }} - - run: npm ci - - run: npm test + node-version: "14.x" + - name: Install node modules + run: npm ci + - name: Run tests + run: npm test + \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 35b3cd5383..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: node_js -node_js: - - "lts/*" - -deploy: - provider: pages - skip-cleanup: true - github-token: $GITHUB_TOKEN - keep-history: true - local-dir: dist/ - on: - branch: main