Skip to content

fix: Fortress api endpoint change #15

fix: Fortress api endpoint change

fix: Fortress api endpoint change #15

Workflow file for this run

name: Create Release
on:
push:
tags:
- "v*.*.*"
jobs:
create_release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Setup Poetry
uses: snok/install-poetry@v1
with:
version: 1.8.3
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install dependencies
run: |
poetry install --no-interaction
- name: Build
run: |
poetry build
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Release notes for ${{ github.ref }}
draft: false
prerelease: false
- name: Get .whl path name
id: get_whl_file_name
run: |
echo "::set-output name=whl_file_name::$(ls dist/*.whl)"
- name: Upload Release Assets
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./${{ steps.get_whl_file_name.outputs.whl_file_name }}
asset_name: fortress_sdk_python-${{ github.ref }}.whl
asset_content_type: application/zip
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_SECRET }}