Fix website build and update action
This commit is contained in:
parent
f406d2055b
commit
616e72f40a
20
.github/workflows/website.yml
vendored
20
.github/workflows/website.yml
vendored
@ -9,8 +9,20 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- name: Checkout
|
||||||
- uses: enriikke/gatsby-gh-pages-action@v2
|
uses: actions/checkout@v3
|
||||||
|
- name: Install
|
||||||
|
uses: borales/actions-yarn@v3.0.0
|
||||||
|
working-directory: website
|
||||||
with:
|
with:
|
||||||
access-token: ${{ secrets.ACCESS_TOKEN }}
|
cmd: install # will run `yarn install` command
|
||||||
working-dir: 'website'
|
- name: Build
|
||||||
|
uses: borales/actions-yarn@v3.0.0
|
||||||
|
working-directory: website
|
||||||
|
with:
|
||||||
|
cmd: install # will run `yarn install` command
|
||||||
|
- name: Deploy
|
||||||
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.ACCESS_TOKEN }}
|
||||||
|
publish_dir: ./website/dist
|
@ -18,7 +18,7 @@ function WhatsNew({ updates }) {
|
|||||||
<Container>
|
<Container>
|
||||||
<Grid as="ol" cols={3}>
|
<Grid as="ol" cols={3}>
|
||||||
{updates.slice(0, 3).map((item, idx) => (
|
{updates.slice(0, 3).map((item, idx) => (
|
||||||
<Release {...item} versionPrevious={updates[idx + 1].version} key={item.version} />
|
<Release {...item} versionPrevious={updates[idx + 1]?.version} key={item?.version} />
|
||||||
))}
|
))}
|
||||||
</Grid>
|
</Grid>
|
||||||
</Container>
|
</Container>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user