the last try. #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 i yarn -g | |
yarn install | |
yarn dist:ext | |
yarn dist:ui | |
- name: Commit | |
run: | | |
cd dist | |
git init | |
git config --global user.name "GitHub Actions" | |
git config --global user.email "[email protected]" | |
git remote add origin https://github.com/Rundll86/fs-context.git | |
git add . | |
git commit -m "Build from Actions" | |
git push -f -u origin master:dist |