This commit is contained in:
Nandin Borjigin 2022-08-16 11:09:49 +08:00 коммит произвёл GitHub
Родитель 529c92bdf9
Коммит 4d5e8b42b4
1 изменённых файлов: 18 добавлений и 11 удалений

29
.github/workflows/github-pages.yml поставляемый
Просмотреть файл

@ -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