Skip to content

extensions v2: now an extension is a (main, preload) pair in a dedica… #17

extensions v2: now an extension is a (main, preload) pair in a dedica…

extensions v2: now an extension is a (main, preload) pair in a dedica… #17

Workflow file for this run

name: Build and Store Artifact
permissions:
contents: write
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install libs
run: |
npm install
- name: Build project
run: |
npm run build
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: package
path: dist
- name: Push artifact to artifacts branch
run: |
# Configure Git
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
# Create or switch to artifacts branch
git fetch origin artifacts || true
git checkout -B artifacts origin/artifacts || git checkout -b artifacts
# Copy build output (adjust folder name if needed)
rm -rf *
cp -r ../$(basename $GITHUB_WORKSPACE)/dist/* .
# Commit and push
git add .
git commit -m "Artifact from PR #${{ github.event.pull_request.number }}"
git push origin artifacts --force