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

View File

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