Skip to content

Merge pull request #211 from nocalhost/dev-tian-update-readme #1105

Merge pull request #211 from nocalhost/dev-tian-update-readme

Merge pull request #211 from nocalhost/dev-tian-update-readme #1105

Workflow file for this run

name: build
on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]
workflow_dispatch:
jobs:
build:
name: build
runs-on: ubuntu-latest
strategy:
matrix:
platform-version: [ 203, 211, 212, 213, 221, 222, 223, 231 ]
env:
ORG_GRADLE_PROJECT_platformVersion: ${{ matrix.platform-version }}
steps:
- uses: actions/checkout@v2
- name: Setup Java JDK
uses: actions/[email protected]
with:
java-version: 17
- name: Get config
run: |
echo "SERVER_VERSION=${{ secrets.MINIMUNM_VERSION_REQUIREMENT }}" | sed 's/v//g' >> $GITHUB_ENV
- name: Build
run: |
sed -i "s/sentryDsn=/sentryDsn=${{secrets.INTELLIJ_PLUGIN_SENTRY_DSN}}/g" src/main/resources/config.properties
sed -i -E "s/serverVersion=(.+)/serverVersion=${{ env.SERVER_VERSION }}/g" src/main/resources/config.properties
./gradlew clean buildPlugin
- name: Push to Coding Artifacts
run: |
cd build/distributions/
PLUGIN_ZIP=$(ls | grep nocalhost-intellij-plugin-)
PLUGIN_VERSION="$(git rev-parse --short HEAD)-${{ matrix.platform-version }}"
curl -T ${PLUGIN_ZIP} -u ${{ secrets.CODING_ARTIFACTS_USER }}:${{ secrets.CODING_ARTIFACTS_PASS }} "https://nocalhost-generic.pkg.coding.net/nocalhost/plugins/nocalhost-intellij-plugin.zip?version=${PLUGIN_VERSION}"