Skip to content

[Framework] Added support for items to parse in mapping (#429) #107

[Framework] Added support for items to parse in mapping (#429)

[Framework] Added support for items to parse in mapping (#429) #107

name: Release framework
on:
push:
tags:
- v*
workflow_dispatch:
env:
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
jobs:
publish_ocean:
name: Publish Ocean
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Checkout Repo
uses: actions/checkout@v3
- name: Make install and build
run: |
make install
make build
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: ${{ env.PYPI_USERNAME }}
password: ${{ env.PYPI_PASSWORD }}
packages-dir: ${{github.workspace}}/dist
- name: Send internal release notification
continue-on-error: true
uses: fjogeleit/http-request-action@v1
with:
url: ${{ secrets.OCEAN_SLACK_WEBHOOK }}
method: 'POST'
customHeaders: '{"Content-Type": "application/json"}'
data: |
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ":tada: *New Version of Ocean Framework Released!* :tada:"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "We are excited to announce the release of a new version of the Ocean framework! :ocean: :rocket:"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Version:* `${{ github.ref_name }}`"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "<https://ocean.getport.io/changelog/${{ github.ref_name }}|Check out the Changelog>"
}
},
{
"type": "divider"
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Happy sailing! :ocean: :heart:"
}
}
]
}