Skip to content

Commit

Permalink
Migrate to GitHub Actions on main
Browse files Browse the repository at this point in the history
  • Loading branch information
textbook committed Apr 29, 2023
1 parent 7a2832c commit dde88a0
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 19 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: GitHub Actions CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- run: python setup.py install
- run: python setup.py test
deploy:
runs-on: ubuntu-22.04
if: startsWith(github.ref, 'refs/tags/v')
needs: test
environment:
name: pypi
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- run: npm install --location=global less
- run: lessc ./bulrush/static/css/main.less ./bulrush/static/css/main.css
- run: python setup.py sdist bdist_wheel
- uses: pypa/gh-action-pypi-publish@release/v1
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

0 comments on commit dde88a0

Please sign in to comment.