Skip to content

add upload token as variable-fix-fix-fix #16

add upload token as variable-fix-fix-fix

add upload token as variable-fix-fix-fix #16

Workflow file for this run

name: Build and Release Python Package
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel build
- name: Build package
run: python -m build
- name: Create Release
uses: actions/create-release@v1
env:
token: ${{ secrets.UPLOAD_TOKEN }}
with:
draft: true
prerelease: true
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist
asset_name: my_project-${{ github.ref }}.tar.gz
asset_content_type: application/gzip