-
Notifications
You must be signed in to change notification settings - Fork 133
48 lines (43 loc) · 1.6 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
name: Build library and deploy snapshot
on:
push:
branches: [ master ]
jobs:
build:
runs-on: macos-latest
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
MAVEN_ARGS: -Dmaven.resolver.transport=wagon
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: '17'
server-id: sonatype-nexus-snapshots
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Install dependencies
run: |
brew install openssl
brew install autoconf
brew install automake
brew install libtool
brew install cmake
- name: build natives
run: ./build.sh
- name: Maven deploy
run: mvn clean deploy
- name: Gradle plugin deploy
run: cd plugins/gradle && ./gradlew clean build publish
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_ACCESS_KEY_SECRET }}
aws-region: eu-west-3
- name: Deploy idea plugin
run: aws s3 sync ./plugins/idea/build/distributions/ s3://${{ secrets.AWS_BUCKET }}/snapshots/idea --acl public-read --follow-symlinks --delete
- name: Deploy eclipse plugin
run: aws s3 sync ./plugins/eclipse/update-site/target/repository/ s3://${{ secrets.AWS_BUCKET }}/snapshots/eclipse --acl public-read --follow-symlinks --delete