-
Notifications
You must be signed in to change notification settings - Fork 4
37 lines (31 loc) · 1009 Bytes
/
ci.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
name: CI
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest
container: wpilib/roborio-cross-ubuntu:2023-22.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-java@v1
with:
java-version: 11
- name: Publish
run: |
./gradlew publish
if: github.repository_owner != 'wpilibsuite' || !startsWith(github.ref, 'refs/tags/v')
- name: Publish (Main)
run: |
./gradlew publish
./gradlew clean publish -PreleaseRepoPublish
env:
RUN_AZURE_ARTIFACTORY_RELEASE: TRUE
ARTIFACTORY_PUBLISH_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
ARTIFACTORY_PUBLISH_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
if: github.repository_owner == 'wpilibsuite' && startsWith(github.ref, 'refs/tags/v')
- uses: actions/upload-artifact@v2
with:
name: Maven
path: ~/releases