Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: trigger release process #11

Merged
merged 1 commit into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,24 @@ 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
permissions:
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:
Expand All @@ -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
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading