diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 140d7c3d4..72c8e16d7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,8 +11,8 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: 16 - run: npm install diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 000000000..296ede4a4 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,26 @@ +name: Deploy + +on: + push: + tags: + - v1.* + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - run: cp -r docs .temp + - uses: actions/checkout@v3 + with: + ref: gh-pages + clean: false + - run: cp -rf .temp/* . + - run: rm -r .temp + - run: git config user.name "${{ github.actor }}" + - run: git config user.email "${{ github.actor }}@users.noreply.github.com" + - run: git add --all + - run: git commit --message "${{ github.ref_name }}" + - run: git push diff --git a/.gitignore b/.gitignore index 0f5ad75eb..f5f6b5dbe 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,6 @@ *.log *.map .DS_Store +.temp coverage node_modules