Skip to content

Commit

Permalink
fix: deploy config
Browse files Browse the repository at this point in the history
  • Loading branch information
zairahms committed Jul 17, 2021
1 parent 244fe3f commit 0c0096c
Showing 1 changed file with 36 additions and 25 deletions.
61 changes: 36 additions & 25 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,32 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install Semantic Release dependencies
run: |
sudo apt-get install bumpversion
npm install -g semantic-release
npm install -g @semantic-release/changelog
npm install -g @semantic-release/exec
npm install -g @semantic-release/git
npm install -g @semantic-release/github
npm install -g @semantic-release/commit-analyzer
npm install -g @semantic-release/release-notes-generator
- name: Publish to Git Releases and Tags
run: npx semantic-release #--dry-run --branches 9388_gha Uncomment for testxing purposes
# - name: Install Semantic Release dependencies
# run: |
# sudo apt-get install bumpversion
# npm install -g semantic-release
# npm install -g @semantic-release/changelog
# npm install -g @semantic-release/exec
# npm install -g @semantic-release/git
# npm install -g @semantic-release/github
# npm install -g @semantic-release/commit-analyzer
# npm install -g @semantic-release/release-notes-generator
# - name: Publish to Git Releases and Tags
# run: npx semantic-release #--dry-run --branches 9388_gha Uncomment for testxing purposes
# env:
# GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
TWINE_USERNAME: ${{ secrets.PYPI_USER }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
# - name: Publish distribution to Test PyPI
# uses: pypa/gh-action-pypi-publish@v1.4.2 # Try to update version tag every release
# - name: Publish package
Expand All @@ -55,15 +66,15 @@ jobs:
# user: ${{ secrets.PYPI_USER }}
# password: ${{ secrets.PYPI_PASSWORD }}
# repository_url: https://upload.pypi.org/legacy/
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
- name: Publish distribution 📦 to PyPI
if: github.event_name == 'release' && github.event.action == 'created'
uses: pypa/gh-action-pypi-publish@master
with:
user: ${{ secrets.PYPI_USER }}
password: ${{ secrets.PYPI_PASSWORD }}
# - name: Publish distribution 📦 to Test PyPI
# uses: pypa/gh-action-pypi-publish@master
# with:
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
# repository_url: https://test.pypi.org/legacy/
# - name: Publish distribution 📦 to PyPI
# if: github.event_name == 'release' && github.event.action == 'created'
# uses: pypa/gh-action-pypi-publish@master
# with:
# user: ${{ secrets.PYPI_USER }}
# password: ${{ secrets.PYPI_PASSWORD }}

0 comments on commit 0c0096c

Please sign in to comment.