From 6b0771688020fea9c54326ac2bce42aa2508c3db Mon Sep 17 00:00:00 2001 From: fs-context Date: Sun, 15 Dec 2024 11:33:48 +0800 Subject: [PATCH] build action --- .github/workflows/build.yaml | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..b506b74 --- /dev/null +++ b/.github/workflows/build.yaml @@ -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 "actions@github.com" + 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 \ No newline at end of file