From 318a94ba1ee538ac73714a4bfc3fc2a7f1db6f52 Mon Sep 17 00:00:00 2001 From: Donovan Hutchinson Date: Tue, 27 Apr 2021 09:26:42 +0100 Subject: [PATCH] Adding action scripts --- .github/workflows/deploy.yml | 22 ++++++++++++++++++++++ .github/workflows/deploy_manual.yml | 17 +++++++++++++++++ .travis.yml | 15 --------------- 3 files changed, 39 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/deploy.yml create mode 100644 .github/workflows/deploy_manual.yml delete mode 100644 .travis.yml 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