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

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NiceneNerd authored May 29, 2020
1 parent f989cb6 commit 950eb6c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,20 @@ jobs:
working-directory: ./bcml/assets
run: |
npm install
npm build
- name: Build and publish to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
./node_modules/.bin/webpack --mode production
- name: Build artifacts
run: |
python setup.py sdist bdist_wheel
rm bcml/helpers/7z.so
pynsist installer.cfg
twine upload dist/*
- name: Upload installer binary
uses: skx/github-action-publish-binaries@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: "build/nsis/*.exe"
- name: Publish to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: twine upload dist/*

0 comments on commit 950eb6c

Please sign in to comment.