Skip to content

Commit

Permalink
ci: trigger on tags, limit docs only to tags
Browse files Browse the repository at this point in the history
  • Loading branch information
eiri committed Mar 28, 2024
1 parent 1382c58 commit 3bd345a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: docs

on:
push:
branches: ['main']
tags: ['*']
workflow_dispatch:

permissions:
Expand Down Expand Up @@ -47,6 +47,6 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
8 changes: 7 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: tests
on:
push:
branches: ['main']
tags: ['*']
pull_request:
branches: ['main']

Expand Down Expand Up @@ -31,9 +32,14 @@ jobs:
run: poetry run ruff check --show-files --exit-non-zero-on-fix
- name: Run tests
run: poetry run pytest -v --cov --cov-report term-missing

release:
needs: tests
runs-on: ubuntu-latest
steps:
- name: Build artifacts
run: poetry build
- name: Release
- name: Publish release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "py-bitcask"
version = "0.1.0"
version = "0.1.1"
description = ""
authors = ["Eric Avdey <eiri@eiri.ca>"]
readme = "README.md"
Expand Down

0 comments on commit 3bd345a

Please sign in to comment.