Skip to content

Commit

Permalink
build action
Browse files Browse the repository at this point in the history
  • Loading branch information
fs-context committed Dec 15, 2024
1 parent 9def995 commit 6b07716
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build current extension

on:
push:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [21.x]

steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Build
run: |
npm install
npm run dist:ext
npm run dist:ui
- name: Commit
run: |
cd dist
git init
git config user.name "GitHub Actions"
git config user.email "[email protected]"
git remote add origin https://github.com/Rundll86/fs-context.git
git branch -M main
git add .
git commit -m "Build from Actions"
git push -f origin dist

0 comments on commit 6b07716

Please sign in to comment.