Skip to content

Commit

Permalink
Revert docs generation from a branch
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-helldar committed Oct 12, 2022
1 parent c4c7f5d commit f7e8140
Showing 1 changed file with 7 additions and 22 deletions.
29 changes: 7 additions & 22 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,18 @@ on:
- completed
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: true
permissions: write-all

jobs:
generate:
runs-on: ubuntu-latest

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Pages
uses: actions/configure-pages@v2

- name: Setup Node.js
uses: actions/setup-node@v3

Expand All @@ -56,11 +42,10 @@ jobs:
- name: Build VuePress site
run: npm run build

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: './docs/.vuepress/dist'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: crazy-max/[email protected]
with:
target_branch: gh-pages
build_dir: docs/.vuepress/dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f7e8140

Please sign in to comment.