Skip to content

Commit

Permalink
run wf on push. change version to 0.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
srprash committed Mar 6, 2024
1 parent 09b9510 commit f7118d8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/release_build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Release Build
on:
#TODO: remove the on-push and hard-coded version after testing
push:
branches:
- release-wf
workflow_dispatch:
inputs:
version:
Expand Down Expand Up @@ -92,7 +96,7 @@ jobs:
TWINE_USERNAME: '__token__'
TWINE_PASSWORD: ${{ env.TEST_PYPI_TOKEN_API_TOKEN }}
run: |
twine upload --repository testpypi --skip-existing --verbose dist/aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl
twine upload --repository testpypi --skip-existing --verbose dist/aws_opentelemetry_distro-0.0.0-py3-none-any.whl
# TODO: uncomment once tested
# - name: Publish to PyPI
Expand Down Expand Up @@ -120,7 +124,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
run: |
gh release create --target "$GITHUB_REF_NAME" \
--title "Release v${{ github.event.inputs.version }}" \
--title "Release v0.0.0" \
--draft \
"v${{ github.event.inputs.version }}" \
dist/aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl
"v0.0.0" \
dist/aws_opentelemetry_distro-0.0.0-py3-none-any.whl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

__version__ = "0.0.1"
__version__ = "0.0.0"

0 comments on commit f7118d8

Please sign in to comment.