Skip to content

Commit

Permalink
Merge abfce4b into 5f6c858
Browse files Browse the repository at this point in the history
  • Loading branch information
wpears committed Dec 28, 2023
2 parents 5f6c858 + abfce4b commit 0920b80
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
name: Publish
name: Publish

on:
on:
release:
types: [published]

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v3
with:
python-version: 3.6
python-version: 3.8

- name: Install Python dependencies
run: python -m pip install --upgrade pip wheel
Expand All @@ -22,12 +22,12 @@ jobs:
id: build
run: |
python setup.py sdist bdist_wheel
# Get the name of the .whl and .tar.gz files and set them as
# Get the name of the .whl and .tar.gz files and set them as
# "outputs" of this step so we can upload them
echo "::set-output name=bdist_wheel::$(cd dist && ls *.whl)"
echo "::set-output name=sdist::$(cd dist && ls *.tar.gz)"
- name: Upload the wheel
uses: actions/upload-release-asset@v1
uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -37,11 +37,11 @@ jobs:
asset_content_type: application/zip

- name: Upload the source distribution
uses: actions/upload-release-asset@v1
uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: dist/${{ steps.build.outputs.sdist }}
asset_name: ${{ steps.build.outputs.sdist }}
asset_content_type: application/gzip
asset_content_type: application/gzip

0 comments on commit 0920b80

Please sign in to comment.