Skip to content

Aktualisieren von deploy-to-gh-pages.yaml #44

Aktualisieren von deploy-to-gh-pages.yaml

Aktualisieren von deploy-to-gh-pages.yaml #44

permissions:
contents: read
pages: write
id-token: write
name: Deploy to GitHub pages
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Generate static files
uses: actions/setup-node@v1
with:
node-version: '12.x'
- run: yarn install
- run: yarn run docs:build
- name: Upload github-pages Artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/.vuepress/dist
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: 'Deploy to GitHub Pages'
id: deployment
uses: actions/deploy-pages@v4