-
Notifications
You must be signed in to change notification settings - Fork 339
chore: Implementing Pypi publish and Tweet steps #410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
5b8ed04
Updated release trigger mechanisms
hiranya911 8cfa42c
Added license information to scripts
hiranya911 f37a753
Added actions for publishing to Pypi and Twitter
hiranya911 5c63fae
Merge branch 'master' into hkj-publish-actions
hiranya911 9194a09
Merge branch 'master' into hkj-publish-actions
hiranya911 204515f
Using shorter secret names; Pinned twitter action to a specific commi…
hiranya911 a2fa5f7
Merge branch 'hkj-publish-actions' of github.com:firebase/firebase-ad…
hiranya911 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,17 +101,6 @@ jobs: | |
with: | ||
name: dist | ||
|
||
# Python is needed to run Twine and some of the preflight checks. | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.6 | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install twine | ||
|
||
- name: Publish preflight check | ||
id: preflight | ||
run: ./.github/scripts/publish_preflight_check.sh | ||
|
@@ -131,11 +120,22 @@ jobs: | |
prerelease: false | ||
|
||
- name: Publish to Pypi | ||
run: echo Publishing to Pypi | ||
uses: pypa/[email protected] | ||
with: | ||
user: firebase | ||
password: ${{ secrets.FIREBASE_PYPI_PASSWORD }} | ||
|
||
# Post to Twitter if explicitly opted-in by adding the label 'release:tweet'. | ||
- name: Post to Twitter | ||
if: success() && | ||
contains(github.event.pull_request.labels.*.name, 'release:tweet') | ||
run: echo Posting Tweet | ||
uses: ethomson/send-tweet-action@v1 | ||
with: | ||
status: > | ||
${{ steps.preflight.outputs.version }} of @Firebase Admin Python SDK is avaialble. | ||
https://github.com/firebase/firebase-admin-python/releases/tag/${{ steps.preflight.outputs.version }} | ||
consumer-key: ${{ secrets.FIREBASE_TWITTER_CONSUMER_KEY }} | ||
consumer-secret: ${{ secrets.FIREBASE_TWITTER_CONSUMER_SECRET }} | ||
access-token: ${{ secrets.FIREBASE_TWITTER_ACCESS_TOKEN }} | ||
access-token-secret: ${{ secrets.FIREBASE_TWITTER_ACCESS_TOKEN_SECRET }} | ||
continue-on-error: true |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.