Skip to content

ci : upload plugin artifact #3

ci : upload plugin artifact

ci : upload plugin artifact #3

Workflow file for this run

name: CI
on:
push:
branches: ["main"]
pull_request:
types: [opened, synchronize]
jobs:
build-and-test:
name: Build And Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
job: [build, lint]
steps:

Check failure on line 18 in .github/workflows/CI.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/CI.yml

Invalid workflow file

You have an error in your yaml syntax on line 18
- name: Checkout code
uses: actions/checkout@v2
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Linting
if: matrix.job == 'lint'
run: bun run lint
- name: Run build job
if: matrix.job == 'build'
run: |
cd apps/plugin
bun run build
tar czf plugin-artifact.tar.gz dist
echo "::set-output name=artifact_path::$(pwd)/plugin-artifact.tar.gz"
- name: Upload Artifact
if: matrix.job == 'build' && success()
uses: actions/upload-artifact@v3
with:
name: ai-chat-plugin
path: ${{ steps.Run build.outputs.artifact_path }}