Skip to content

feat: update youtube-source #34

feat: update youtube-source

feat: update youtube-source #34

name: Publish
on:
push:
branches:
- v1.1
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: |
16
17
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build -Psnapshot=true
- name: Publish to snapshots maven repository
uses: gradle/gradle-build-action@v2
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
with:
arguments: publish --stacktrace -Psnapshot=true
- name: Publish to GitHub
uses: Apehum/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
files-primary: build/libs/!(*-@(dev|sources|javadoc)).jar
files-secondary: build/libs/*-@(disabled).jar
github-generate-changelog: false
github-prerelease: true
changelog-file: changelog.md