Skip to content

Commit

Permalink
Merge pull request #106 from ant-media/add-release-workflow
Browse files Browse the repository at this point in the history
Add release workflow
  • Loading branch information
lastpeony authored Sep 9, 2024
2 parents 995bf15 + 11e689a commit da593cf
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 11 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,17 +211,6 @@ jobs:
files: webrtc-android-framework/build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml,webrtc-android-sample-app/build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml
fail_ci_if_error: true

- name: Deploy to Sonatype
#deploy only in master branches
if: github.ref == 'refs/heads/master'
run: ./gradlew publish
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}

clean:
needs: [setup-runner, unit-tests]
runs-on: ubuntu-latest
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Create Release on Tag

on:
push:
tags:
- '*'

jobs:
create_release:
name: Create Release
runs-on: ubuntu-latest
permissions: write-all

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Deploy to Sonatype
run: ./gradlew publish
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}

0 comments on commit da593cf

Please sign in to comment.