Skip to content

Commit

Permalink
main: Add release action
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe-l-hart committed Aug 19, 2021
1 parent d924953 commit 7f457dc
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# This workflow runs the typescript implementation unit tests
name: release
on:
release:
types: [published]
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run release
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
tag=$(echo $REF | cut -d'/' -f3-)
echo "Releasing version ${tag}"
docker build . \
--target=release_test \
--build-arg RELEASE_VERSION=${tag} \
--build-arg PYPI_TOKEN=${PYPI_TOKEN}
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This workflow runs the typescript implementation unit tests
name: python-tests
name: tests
on:
push:
branches: [ main ]
Expand Down

0 comments on commit 7f457dc

Please sign in to comment.