generated from wpilibsuite/vendor-template
-
Notifications
You must be signed in to change notification settings - Fork 4
51 lines (51 loc) · 1.54 KB
/
update.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
name: Build and Publish YAGSL vendordep
on:
workflow_dispatch:
inputs:
releaseVersion:
description: "Release version number"
type: string
required: true
jobs:
update:
runs-on: ubuntu-latest
permissions:
contents: write
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
releaseVersion: ${{ inputs.releaseVersion }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- name: Clone dev branch
run: |
gh repo clone BroncBotz3481/YAGSL-Example -- -b dev
- name: Copy source over
run: |
rm -rf src/main/java/swervelib
cp -r YAGSL-Example/src/main/java/swervelib src/main/java/
- name: Copy vendordeps over
run: |
rm vendordeps/*
cp YAGSL-Example/vendordeps/* vendordeps/
rm vendordeps/Pathplanner*
# rm vendordeps/photon*
- name: Removing source repo
run: |
rm -rf YAGSL-Example
- name: Install roboRio toolchain
run: ./gradlew installRoboRioToolchain
- name: Build vendordep
run: ./gradlew build
- name: Publish vendordep
run: ./gradlew publish
- name: Update repository
run: |
git config --global user.name "thenetworkgrinch"
git config --global user.email "[email protected]"
git add .
git commit -m "Upgrading to ${{ inputs.releaseVersion }}"
git push