diff --git a/.github/workflows/tag.yaml b/.github/workflows/tag.yaml index fc91dd3..5e336d9 100644 --- a/.github/workflows/tag.yaml +++ b/.github/workflows/tag.yaml @@ -6,13 +6,16 @@ name: Tag concurrency: group: deploy - cancel-in-progress: false # prevent hickups with semantic-release + # NOTE: prevent hickups with semantic-release + cancel-in-progress: false env: PYTHON_VERSION_DEFAULT: "3.10.8" jobs: tag: + # NOTE: only trigger the workflow when the commit is not from the GitHubActions bot (prevent self-triggering) + if: github.event.commits[0].author.name != 'GitHubActions' runs-on: ubuntu-latest concurrency: release environment: DEV @@ -20,7 +23,7 @@ jobs: contents: write steps: - # NOTE: commits using GITHUB_TOKEN does not trigger workflows + # NOTE: commits using GITHUB_TOKEN does not trigger workflows and we want to trigger PiPY from tag - uses: actions/create-github-app-token@v1 id: trigger-token with: @@ -33,7 +36,6 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} persist-credentials: false ref: main - - name: Python Semantic Release id: semrelease # v9.6.0 is required due to the python v3.12 in the newer version of semantic release action which diff --git a/Makefile b/Makefile index a9f49d0..0c00b79 100644 --- a/Makefile +++ b/Makefile @@ -33,6 +33,10 @@ dep-check: ## check for outdated dependencies @echo "Running dependencies checks..." @rye run deptry . --known-first-party $(APP_NAME) +build: ## build distributions + @echo "Building distributions..." + @rye build + check: lint format test type-check dep-check ## run all checks help: ## This is help