Skip to content

Commit

Permalink
ci: build sdist on GitHub Actions
Browse files Browse the repository at this point in the history
This one-off job is needed to produce the .tar.gz artifact containing
source code.
  • Loading branch information
indygreg committed Dec 8, 2020
1 parent b992673 commit b633124
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 14 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/sdist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
- push
- pull_request
jobs:
sdist:
runs-on: 'ubuntu-20.04'
steps:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'

- uses: actions/checkout@v2

- name: Build sdist
run: |
python setup.py sdist
- name: Upload sdist
uses: actions/upload-artifact@v2
with:
path: dist
14 changes: 0 additions & 14 deletions ci/azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
jobs:
- job: Source_Distribution
pool:
vmImage: ubuntu-18.04
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: 3.7
- script: |
python setup.py sdist
displayName: Build
- task: PublishPipelineArtifact@1
inputs:
path: $(System.DefaultWorkingDirectory)/dist

- template: azure-pipelines-anaconda-linux-template.yml
parameters:
name: Linux_Anaconda
Expand Down

0 comments on commit b633124

Please sign in to comment.