-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Simplify CI flow and use master only (#1626)
* fix: Simplify CI flow and use master only * Remove spaces
- Loading branch information
1 parent
aeeda78
commit 586fa02
Showing
2 changed files
with
48 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Publish Python Package | ||
on: | ||
push: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- "CHANGELOG.md" | ||
- "aimmo/__init__.py" | ||
jobs: | ||
publish-pypi-package: | ||
name: Publish PyPi Package | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
persist-credentials: false | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.7" | ||
architecture: "x64" | ||
- name: Use Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14.x | ||
- name: Install frontend dependencies | ||
run: | | ||
cd game_frontend | ||
yarn --frozen-lockfile | ||
- name: Install wheel | ||
run: pip install wheel | ||
- name: Build worker wheel | ||
run: ./aimmo_runner/build_worker_wheel.sh | ||
- name: Bundle Frontend | ||
run: | | ||
cd game_frontend | ||
node djangoBundler.js | ||
- name: Release aimmo | ||
uses: relekang/python-semantic-release@v7.12.0 | ||
with: | ||
github_token: ${{ secrets.PERSONAL_GITHUB_TOKEN }} | ||
pypi_token: ${{ secrets.PYPI_TOKEN }} |