This repository has been archived by the owner on Dec 19, 2024. It is now read-only.
feat: separate webrtc #103
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Java CI with Gradle | |
env: | |
JAR_SHA256: '' | |
on: | |
push: | |
paths: | |
- ".github/workflows/*.yml" | |
- "**.kts" | |
- "**.kt" | |
- "**.java" | |
pull_request: | |
release: | |
types: | |
- created | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Build with Gradle | |
uses: gradle/[email protected] | |
with: | |
arguments: build | |
- name: Upload a Build Artifact | |
uses: actions/[email protected] | |
with: | |
path: build/libs | |
upload-to-release: | |
name: Upload to Release | |
needs: | |
- build | |
runs-on: ubuntu-latest | |
if: github.event_name == 'release' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Get Version | |
run: echo "VERSION=${{ github.ref_name }}" >> $GITHUB_ENV | |
- name: Download Artifacts | |
uses: actions/download-artifact@v3 | |
- name: Compute Artifacts SHA256 | |
run: | | |
echo "JAR_SHA256=$(sha256sum artifact/HeaderOutput-${{ env.VERSION }}-all.jar | cut -d ' ' -f 1)" >> $GITHUB_ENV | |
shell: bash | |
- name: Upload Release Assets | |
uses: softprops/action-gh-release@v1 | |
with: | |
append_body: true | |
files: | | |
artifact/HeaderOutput-${{ env.VERSION }}-all.jar | |
body: | | |
--- | |
| File | SHA256 | | |
| :--------------------------------------------- | :-------------------- | | |
| HeaderOutput-${{ env.VERSION }}-all.jar | ${{ env.JAR_SHA256 }} | |