Updates IJ plugin for 2024.3 #1591
Workflow file for this run
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: Clojure CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/setup | |
- run: bb -m tasks.ci/setup | |
check: | |
needs: [ setup ] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/setup | |
- run: bb check | |
test-clj: | |
needs: [ setup ] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/setup | |
- run: bb -m tasks.test/clj | |
test-cljs: | |
needs: [ setup ] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/setup | |
- run: bb -m tasks.test/cljs | |
app: | |
runs-on: ubuntu-latest | |
needs: [ test-clj, test-cljs, check ] | |
if: github.event_name == 'push' | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/setup | |
- run: bb app | |
- uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./target/pwa-release/ | |
force_orphan: true | |
package: | |
runs-on: ubuntu-latest | |
needs: [ test-clj, test-cljs, check ] | |
if: startsWith(github.event.head_commit.message, 'Release ') | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/setup | |
- run: bb pkg | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: jar | |
path: target/*.jar | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: extension-vscode | |
path: | | |
extension-vscode/ | |
!extension-vscode/node_modules | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: extension-intellij | |
path: extension-intellij/build/distributions/*.zip | |
release: | |
runs-on: ubuntu-latest | |
needs: [ package ] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/setup | |
- id: info | |
run: bb -m tasks.info | |
- uses: actions/download-artifact@v4 | |
with: | |
name: jar | |
path: target/ | |
- uses: actions/download-artifact@v4 | |
with: | |
name: extension-vscode | |
path: extension-vscode/ | |
- uses: actions/download-artifact@v4 | |
with: | |
name: extension-intellij | |
path: extension-intellij/build/distributions/ | |
- uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: ${{ steps.info.outputs.version }} | |
files: | | |
target/*.jar | |
extension-vscode/*.vsix | |
extension-intellij/build/distributions/*.zip | |
deploy-clojars: | |
runs-on: ubuntu-latest | |
needs: [ release ] | |
environment: deploy | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/setup | |
- uses: actions/download-artifact@v4 | |
with: | |
name: jar | |
path: target/ | |
- run: ls target/ | |
- run: bb -m tasks.deploy/deploy-clojars | |
env: | |
CLOJARS_PASSWORD: ${{ secrets.CLOJARS_PASSWORD }} | |
CLOJARS_USERNAME: ${{ secrets.CLOJARS_USERNAME }} | |
deploy-vsx: | |
runs-on: ubuntu-latest | |
needs: [ release ] | |
environment: deploy | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/setup | |
- uses: actions/download-artifact@v4 | |
with: | |
name: extension-vscode | |
path: extension-vscode/ | |
- run: ls extension-vscode/ | |
- run: bb -m tasks.deploy/deploy-vscode | |
env: | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
deploy-open-vsx: | |
runs-on: ubuntu-latest | |
needs: [ release ] | |
environment: deploy | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/setup | |
- uses: actions/download-artifact@v4 | |
with: | |
name: extension-vscode | |
path: extension-vscode/ | |
- run: ls extension-vscode/ | |
- run: bb -m tasks.deploy/deploy-open-vsx | |
env: | |
OVSX_PAT: ${{ secrets.OVSX_PAT }} | |
deploy-intellij: | |
runs-on: ubuntu-latest | |
needs: [ release ] | |
environment: deploy | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/setup | |
- uses: actions/download-artifact@v4 | |
with: | |
name: extension-intellij | |
path: extension-intellij/build/distributions/ | |
- run: ls extension-intellij/build/distributions/ | |
- run: bb -m tasks.deploy/deploy-intellij | |
env: | |
JETBRAINS_TOKEN: ${{ secrets.JETBRAINS_TOKEN }} |