diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..78cb17b --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,22 @@ +name: Master branch deploy +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build_deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - run: npm install + - run: npm run build + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + PUBLISH_DIR: _site + PUBLISH_BRANCH: gh-pages + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/deploy_manual.yml b/.github/workflows/deploy_manual.yml new file mode 100644 index 0000000..ccd5af8 --- /dev/null +++ b/.github/workflows/deploy_manual.yml @@ -0,0 +1,17 @@ +name: Manual deploy +on: + workflow_dispatch + +jobs: + build_deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - run: npm install + - run: npm run build + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + PUBLISH_DIR: _site + PUBLISH_BRANCH: gh-pages + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 337759f..0000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: node_js -node_js: - - "stable" -cache: - directories: - - node_modules -script: - - npm run build -deploy: - provider: pages - skip_cleanup: true - github_token: $github_token - local_dir: _site - on: - branch: master