Update github-pages.yml
This commit is contained in:
Родитель
529c92bdf9
Коммит
4d5e8b42b4
|
@ -7,18 +7,18 @@ on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
id-token: write
|
||||||
|
contents: read
|
||||||
|
pages: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
permissions:
|
|
||||||
id-token: write
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Checkout
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
uses: actions/checkout@v3
|
||||||
|
- name: Use Node.js
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16.x
|
node-version: 16.x
|
||||||
|
@ -28,6 +28,13 @@ jobs:
|
||||||
- uses: actions/upload-pages-artifact@v1.0.3
|
- uses: actions/upload-pages-artifact@v1.0.3
|
||||||
with:
|
with:
|
||||||
path: dist/
|
path: dist/
|
||||||
- uses: actions/deploy-pages@v1.0.8
|
deploy:
|
||||||
with:
|
environment:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
name: github-pages
|
||||||
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: build
|
||||||
|
steps:
|
||||||
|
- name: Deploy to GitHub Pages
|
||||||
|
id: deployment
|
||||||
|
uses: actions/deploy-pages@v1.0.8
|
||||||
|
|
Загрузка…
Ссылка в новой задаче