Skip to content

Commit

Permalink
Add autorelease via CI, refs #11
Browse files Browse the repository at this point in the history
  • Loading branch information
rednafi committed Nov 8, 2022
1 parent 039b5d3 commit ff5cdc2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ on:
- published

schedule:
# At 00:00 on every Sunday.
- cron: "0 0 * * 0"
# At 1:43 UTC on every Sunday.
- cron: "43 1 * * 0"

# If you trigger a new workflow while the previous one is running,
# this will cancel the previous one.
Expand Down Expand Up @@ -66,20 +66,20 @@ jobs:
echo "Running the tests..."
make test
- uses: actions/upload-artifact@v3
with:
name: Upload pip cache
path: ~/.cache/pip # or path/to/artifact

publish:
needs: ["test"]
if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
name: Download pip cache
path: ~/.cache/pip
python-version: "3.11"

- name: Install the Dependencies
run: |
echo "Installing the dependencies..."
python -m pip install -e .[dev]
- name: Build the package
run: |
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ dev = [
"pre-commit",
"pip-tools",
"pytest",
"build",
"hatch",
"types-setuptools",
"types-pkg_resources",
Expand Down

0 comments on commit ff5cdc2

Please sign in to comment.