-
Notifications
You must be signed in to change notification settings - Fork 22
52 lines (46 loc) · 1.54 KB
/
release.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Release
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 5
persist-credentials: false
- name: Setup Java 11 and Apache Maven
uses: actions/setup-java@v1
with:
java-version: 11
- name: Configure GIT
run: |
git config --global user.name "Gluon Bot"
git config --global user.email "[email protected]"
- name: Publish to Gradle Plugin Repository
run: |
./gradlew publishPlugins -Pgradle.publish.key=$PUBLISH_KEY -Pgradle.publish.secret=$PUBLISH_SECRET
env:
PUBLISH_KEY: ${{ secrets.PUBLISH_KEY }}
PUBLISH_SECRET: ${{ secrets.PUBLISH_SECRET }}
- name: Commit next development version
if: steps.deploy.outputs.exit_code == 0
run: |
TAG=${GITHUB_REF/refs\/tags\//}
bash $GITHUB_WORKSPACE/.github/scripts/update-next-development.sh "$TAG"
shell: bash
env:
GITHUB_PASSWORD: ${{ secrets.PAT }}
- name: Update ide-plugin properties
if: steps.deploy.outputs.exit_code == 0
run: |
TAG=${GITHUB_REF/refs\/tags\//}
echo "Update ide-plugin properties"
bash $GITHUB_WORKSPACE/.github/scripts/update-ide-properties.sh "$TAG"
shell: bash
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}