-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1328 from Sage-Bionetworks/develop-revert-workflo…
…w-changes Revert changes related to workflow
- Loading branch information
Showing
2 changed files
with
20 additions
and
25 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
name: Publish to PyPI | ||
on: | ||
push: | ||
branches: [develop-refactor-schemas] | ||
# on: | ||
# push: | ||
# tags: | ||
# - 'v[1-9][0-9].[0-9]+.[0-9]+' | ||
# branches: [main] | ||
tags: | ||
- 'v[1-9][0-9].[0-9]+.[0-9]+' | ||
branches: [main] | ||
|
||
jobs: | ||
pypi_release: | ||
runs-on: ubuntu-latest | ||
env: | ||
POETRY_VERSION: 1.3.0 | ||
# if: github.event_name == 'push' && contains(github.ref, 'refs/tags') | ||
if: github.event_name == 'push' && contains(github.ref, 'refs/tags') | ||
steps: | ||
#---------------------------------------------- | ||
# check-out repo and set-up python | ||
|
@@ -99,7 +96,7 @@ jobs: | |
#---------------------------------------------- | ||
- name: Publish package to Pypi | ||
id: publish-to-pypi | ||
# if: steps.check-tag.outputs.match == 'true' | ||
if: steps.check-tag.outputs.match == 'true' | ||
env: | ||
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} | ||
PYPI_USERNAME: __token__ | ||
|
@@ -110,17 +107,17 @@ jobs: | |
# post a message to slack | ||
#---------------------------------------------- | ||
|
||
# - name: Post to a Slack channel | ||
# if: steps.publish-to-pypi.outcome == 'success' | ||
# id: slack | ||
# uses: slackapi/[email protected] | ||
# with: | ||
# # Slack channel id, channel name, or user id to post message. | ||
# # See also: https://api.slack.com/methods/chat.postMessage#channels | ||
# # You can pass in multiple channels to post to by providing a comma-delimited list of channel IDs. | ||
# # ibc-fair-data channel and data-curator-schematic channel | ||
# channel-id: 'C050YD75QRL,C01ANC02U59' | ||
# # For posting a simple plain text message | ||
# slack-message: "Schematic has just been released. Check out new version: ${{ github.ref_name }}" | ||
# env: | ||
# SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | ||
- name: Post to a Slack channel | ||
if: steps.publish-to-pypi.outcome == 'success' | ||
id: slack | ||
uses: slackapi/[email protected] | ||
with: | ||
# Slack channel id, channel name, or user id to post message. | ||
# See also: https://api.slack.com/methods/chat.postMessage#channels | ||
# You can pass in multiple channels to post to by providing a comma-delimited list of channel IDs. | ||
# ibc-fair-data channel and data-curator-schematic channel | ||
channel-id: 'C050YD75QRL,C01ANC02U59' | ||
# For posting a simple plain text message | ||
slack-message: "Schematic has just been released. Check out new version: ${{ github.ref_name }}" | ||
env: | ||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} |
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