Skip to content

Commit

Permalink
Run release on release creation (facebook#48)
Browse files Browse the repository at this point in the history
Summary:
Pushing tags against existing commits doesn't seem to trigger the action, so let's list releases here instead.

Docs for this in D26607139.

Pull Request resolved: facebookincubator/fbjni#48

Test Plan:
Ran it on my fork. It failed but because there were unclosed previous updates, which is in fact expected (and quite useful, too, because it means we don't have a stray release).

https://github.com/passy/fbjni/runs/1961026784?check_suite_focus=true

Reviewed By: nikoant

Differential Revision: D26583351

Pulled By: passy

fbshipit-source-id: 1eee0b8c5b294a778da95c7017a9fbe4f5232354
  • Loading branch information
passy authored and facebook-github-bot committed Feb 24, 2021
1 parent 46c3253 commit 16b6cbe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions first-party/fbjni/.github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Publish Android

on:
push:
tags:
- v*
release:
types:
- created
workflow_dispatch:

jobs:
Expand All @@ -29,7 +29,7 @@ jobs:
SONATYPE_NEXUS_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
SONATYPE_NEXUS_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
- name: Upload Java-Only Archives
run: ./gradlew -b host.gradle assembleRelease uploadArchives --info
run: ./gradlew -b host.gradle assemble uploadArchives --info
env:
SONATYPE_NEXUS_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
SONATYPE_NEXUS_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
Expand Down

0 comments on commit 16b6cbe

Please sign in to comment.