Fix website build and update action

This commit is contained in:
Daniel Lautzenheiser 2022-09-30 11:13:22 -04:00
parent f406d2055b
commit 616e72f40a
2 changed files with 17 additions and 5 deletions

View File

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

View File

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