Skip to content

Create Draft Release #27

Create Draft Release

Create Draft Release #27

Workflow file for this run

# Copyright © 2022 IOTIC LABS LTD. info@iotics.com
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://github.com/Iotic-Labs/iotics-grpc-client-py/blob/main/LICENSE
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Create Draft Release
on:
workflow_dispatch:
jobs:
tag-repo:
name: Tag Iotics gRPC Client Python Repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Tag the git repo
run: |
pip install .
TAG=v$(python -c 'from importlib.metadata import version; print(version("iotics-grpc-client"))')
echo TAG=$TAG >> $GITHUB_ENV
git tag $TAG
git push origin $TAG
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ env.TAG }}
release_name: Release ${{ env.TAG }}
draft: true