forked from AusTINCANsProgrammingTeam/2023RobotCode
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (40 loc) · 1.24 KB
/
release.yml
File metadata and controls
51 lines (40 loc) · 1.24 KB
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
# This is a basic workflow to build robot code.
name: release
# Controls when the action will run. Triggers the workflow on push or pull request
# events for main and develop branches
on:
workflow_dispatch:
release:
types: [created]
permissions:
contents: write
pages: write
id-token: write
env:
JAVA_VERSION: 1.11
GRADLE_VERSION: 7.2
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
deploy:
name: Prepare Jar & JitPack
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK ${{ env.JAVA_VERSION }}
uses: actions/setup-java@v1
with:
java-version: ${{ env.JAVA_VERSION }}
- name: Build - Gradle ${{ env.GRADLE_VERSION }}
uses: gradle/gradle-build-action@v2.3.0-beta.1
with:
arguments: build -Pversion=${{ github.event.release.tag_name }}
- name: Upload Assets to Release
uses: AButler/upload-release-assets@v2.0
with:
files: ./build/libs/*.jar
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Update JitPack
uses: badasintended/autojitpack@v1
with:
version: ${{ github.event.release.tag_name }}