-
Notifications
You must be signed in to change notification settings - Fork 8
41 lines (30 loc) · 840 Bytes
/
master.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
name: Master
on:
push:
branches:
- 'master'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Java Set-Up
uses: actions/setup-java@v2
with:
distribution: "adopt"
java-version: "8"
- name: Set up secrets
run: 'echo "$NPM_AUTH" >> ~/.npmrc'
env:
NPM_AUTH: ${{secrets.NPM_AUTH}}
- name: NodeJS Set-Up
uses: actions/setup-node@v2
with:
node-version: "16"
cache: 'yarn'
- name: Yarn install
run: yarn install
- name: Gradle Build
run: /bin/sh ./gradlew build
- name: Gradle Publish
run: /bin/sh ./gradlew -Pjourneymap.user=${{ secrets.JOURNEYMAP_USER }} -Pjourneymap.password=${{ secrets.JOURNEYMAP_PASSWORD }} publish