Merge pull request #86 from C3ntraX/main #112
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: Publish Plugins | |
on: | |
push: | |
branches: ['main'] | |
jobs: | |
build: | |
name: publish plugins | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: 'npm' | |
cache-dependency-path: '**/package-lock.json' | |
node-version: 'latest' | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: "corretto" | |
java-version: "17" | |
cache: 'gradle' | |
- name: update plugins.json | |
working-directory: src/echo-tools | |
run: node src/build-plugins-json.mjs | |
- name: npm install | |
run: ./gradlew npmInstall | |
- name: build plugins | |
run: ./gradlew buildPlugins | |
- name: push | |
run: | | |
git config --global user.name 'zach-herridge' | |
git config --global user.email 'zach-herridge@users.noreply.github.com' | |
git checkout -b "published-plugins" | |
git add public/** -f | |
git add dist_plugins/** -f | |
git commit -m "update plugins" | |
git push -f --set-upstream origin published-plugins |