Skip to content

Commit 6f0c330

Browse files
committed
update deployment workflow
1 parent 2d3e7fb commit 6f0c330

2 files changed

Lines changed: 43 additions & 14 deletions

File tree

.github/workflows/cd.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CD
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: Install
14+
run: yarn
15+
- name: Build
16+
run: yarn build
17+
- uses: actions/upload-artifact@master
18+
with:
19+
name: page
20+
path: public
21+
if-no-files-found: error
22+
23+
deploy:
24+
runs-on: ubuntu-latest
25+
permissions:
26+
id-token: write
27+
pages: write
28+
contents: read
29+
needs: build
30+
environment:
31+
name: github-pages
32+
url: ${{steps.deployment.outputs.page_url}}
33+
steps:
34+
- uses: actions/download-artifact@master
35+
with:
36+
name: page
37+
path: .
38+
- uses: actions/configure-pages@v1
39+
- uses: actions/upload-pages-artifact@v1
40+
with:
41+
path: .
42+
- id: deployment
43+
uses: actions/deploy-pages@main

.travis.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)