diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6c8c40e..e5a35c1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,14 +6,17 @@ jobs: name: Build Docs steps: - uses: actions/checkout@v2 - - id: Build-Docs - run: | - yarn install --frozen-lockfile - yarn docs:build - cd docs/.vitepress/dist - git config --global user.name "anatolykopyl" - git init - git add -A - git commit -m "Deploy to GitHub Pages" - git push -f https://anatolykopyl:${{ secrets.GITHUB_TOKEN }}@github.com/anatolykopyl/vue-three-d-mockup.git master:gh-pages - shell: bash + - uses: actions/setup-node@v3 + with: + node-version: 16 + cache: yarn + - run: yarn install --frozen-lockfile + + - name: Build + run: yarn docs:build + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: docs/.vitepress/dist diff --git a/package.json b/package.json index 23931d9..f50d147 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-three-d-mockup", - "version": "1.0.0", + "version": "1.0.1", "description": "📱 A 3D phone mockup component to showcase your apps", "author": "Anatoly Kopyl ", "keywords": [