-
Notifications
You must be signed in to change notification settings - Fork 660
36 lines (31 loc) · 1.15 KB
/
publish-ij-plugin-snapshot.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Publish IntelliJ plugin snapshot
on:
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
jobs:
publish-intellij-plugin:
name: Publish IntelliJ plugin
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c #v3.3.0
- uses: actions/setup-java@1df8dbefe2a8cbc99770194893dd902763bee34b #v3.9.0
with:
distribution: 'temurin'
java-version: 17
- name: Increment snapshot version
run: |
git config user.name github-actions
git config user.email [email protected]
./scripts/increment-ij-plugin-snapshot.main.kts
env:
IJ_PLUGIN_SNAPSHOT: true
GH_TOKEN: ${{ github.token }}
- name: Publish snapshot to Repsy
run: ./gradlew --no-build-cache :intellij-plugin:publishAllPublicationsToRepsyIjPluginSnapshots
env:
IJ_PLUGIN_SNAPSHOT: true
IJ_PLUGIN_REPSY_USERNAME: ${{ secrets.IJ_PLUGIN_REPSY_USERNAME }}
IJ_PLUGIN_REPSY_PASSWORD: ${{ secrets.IJ_PLUGIN_REPSY_PASSWORD }}