Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Commit

Permalink
Change from using travis to GitHub actions for deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
gene1wood committed May 1, 2020
1 parent 505e66f commit b096aea
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 17 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build and Publish Python Package
on:
push:
tags:
- 'v*' # Run when "v*" version tags are created like "v1.0.0"
jobs:
release:
name: Build and Publish
runs-on: ubuntu-latest
steps:
- name: Install build dependencies
run: python3 -m pip install --upgrade wheel setuptools
- name: Checkout code
uses: actions/checkout@v2
- name: Build package
run: python3 setup.py sdist bdist_wheel --universal
- name: Publish package to PyPI
uses: pypa/[email protected]
with:
user: __token__
# password: ${{ secrets.TEST_PYPI_TOKEN }}
# repository_url: https://test.pypi.org/legacy/
password: ${{ secrets.PYPI_TOKEN }}
17 changes: 0 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,6 @@ install: pip install -U tox-travis
# Command to run tests, e.g. python setup.py test
script: tox

# Assuming you have installed the travis-ci CLI tool, after you
# create the Github repo and add it to Travis, run the
# following command to finish PyPI deployment setup:
# $ travis encrypt --add deploy.password
deploy:
skip_cleanup: true
skip_existing: true
provider: pypi
distributions: sdist bdist_wheel
user: __token__
password:
secure: "jxSja/sBU4RMZs7I171EE0d6T/O5PYzYbNHAzeFdH1bACL2jcEXyR8qGMifNZmy0TnHtMxzRWibrDRznW9kw/2NtKwjpYlqiZDkyEQG6L14OT1gUuW03vO48uXLn0EtWbon5zbOfqjlkrdhshNPyrYeU5Mj53QedrvI2AHIoU5s/IZebg+C/twt3KgBUSt16NThae6V7RIae+XX49y3xgPpxizdVBC4ZrNns+WQY+4jZFGLDJmBUZrQVcZYgRH1vydMomvhbRFc/YDrrm4hC2nLTA8uMbKTAXyOEHPcfwYbgtNL/ixArhlGVA7zGn55QUoC2Pd+mx0tzJSJPNLt8Uvy4gX9XMdwKZgZNmJ4AVfZBII2Nr1TwbOgNeQEHrDWPhdDxR0RT48U7vi/Bo+TBYIyJGJMPohfND4qVPO7cvmrKNTNQyytz6j6WTBFs7+3hvs711DgEIjLsBdVWz79GqzuRatg3Ph7+QqA301PC0h2dUDCEoQFE9NQ9kp/Gi5+l7hfMYPCm0k+hjqjRKj81Dg01w1rUBVpKie+8OhJGMrthJscbvy7JyocCIXY4KZC0rz9f1bffz84F3MCucZ5qqprWb7r5uWa7m0ZbradHnhwz8vLzjfrP4KJFMxOLu+3bhGv8XiaELGmc1CXPa0n19z0TV3qLDUAt7z7z8ZImC1s="
on:
tags: true
repo: mozilla-iam/mozilla-aws-cli
python: 3.6

jobs:
include:
- stage: lambda
Expand Down

0 comments on commit b096aea

Please sign in to comment.