mirror of
https://github.com/kou029w/chirimen-hands-on.git
synced 2025-01-18 16:08:13 +00:00
use upload-pages-artifact@v2 and deploy-pages@v2
This commit is contained in:
parent
0dd22b9f32
commit
8398c8b835
1 changed files with 15 additions and 8 deletions
23
.github/workflows/github-pages.yml
vendored
23
.github/workflows/github-pages.yml
vendored
|
@ -1,18 +1,25 @@
|
||||||
name: github-pages
|
name: github-pages
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: main
|
||||||
jobs:
|
jobs:
|
||||||
main:
|
build:
|
||||||
permissions:
|
|
||||||
pages: write
|
|
||||||
id-token: write
|
|
||||||
environment: github-pages
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- run: make build
|
- run: make build
|
||||||
- uses: actions/upload-pages-artifact@v1
|
- uses: actions/upload-pages-artifact@v2
|
||||||
with:
|
with:
|
||||||
path: dist
|
path: dist
|
||||||
- uses: actions/deploy-pages@v1
|
deploy:
|
||||||
|
environment:
|
||||||
|
name: github-pages
|
||||||
|
url: ${{ steps.deploy.outputs.page_url }}
|
||||||
|
permissions:
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
needs: build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- id: deploy
|
||||||
|
uses: actions/deploy-pages@v2
|
||||||
|
|
Loading…
Add table
Reference in a new issue