Skip to content

Try to use artifacts instead #13

Try to use artifacts instead

Try to use artifacts instead #13

name: Publish benchmarks to GitHub Pages
on:
push:
branches:
- update-chipsets
permissions:
contents: read
pages: write
id-token: write
jobs:
auto-update:

Check failure on line 14 in .github/workflows/roll20-update-benchmark.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/roll20-update-benchmark.yml

Invalid workflow file

You have an error in your yaml syntax on line 14
name: Automated benchmarks update
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18.x'
- name: Cache dependencies
uses: actions/cache@v4
id: yarn-cache
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-install-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies (cold)
if: ${{ steps.yarn-cache.outputs.cache-hit != 'true' }}
run: yarn install
- name: Install dependencies (cache hit)
if: ${{ steps.yarn-cache.outputs.cache-hit == 'true' }}
run: yarn install --prefers-offline
- name: Bump patch version
run: npm version patch --no-git-tag-version
- name: Update benchmarks
run: yarn run update-benchmarks
- name: Build final result
run: yarn build
- name: Upload benchmarks as Pages artifact
uses: actions/upload-pages-artifact@v1
with:
path: benchmarks
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}