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:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: enriikke/gatsby-gh-pages-action@v2
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Install
|
||||
uses: borales/actions-yarn@v3.0.0
|
||||
working-directory: website
|
||||
with:
|
||||
access-token: ${{ secrets.ACCESS_TOKEN }}
|
||||
working-dir: 'website'
|
||||
cmd: install # will run `yarn install` command
|
||||
- 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>
|
||||
<Grid as="ol" cols={3}>
|
||||
{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>
|
||||
</Container>
|
||||
|
Loading…
x
Reference in New Issue
Block a user