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