Skip to content

Commit

Permalink
feat: add workfow and gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
marbonilla committed Sep 10, 2024
1 parent ddc7c7a commit eadc4da
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release

on: [workflow_dispatch]

jobs:
release:
runs-on: ubuntu-latest
concurrency: release
permissions:
id-token: write
contents: write

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Python Semantic Release
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install dependencies
run: |
pip install -e .[dev]
- name: Run Semantic Release
run: make release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
venv/
.input.yml
output/
*/__pycache__/
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# CHANGELOG

## v0.1.0 (2024-09-10)

### Feature

* feat: organize in forders and create license file ([`cf8edaf`](https://github.com/eduNEXT/edunext-grafana-dashboards/commit/cf8edaffd9c26ce57cb0fbeefd810e8cebf2b22a))

* feat: include readme ([`9511761`](https://github.com/eduNEXT/edunext-grafana-dashboards/commit/9511761b431dd3e7a6429fa33567af15022d055a))

* feat: first commit ([`e62b0c4`](https://github.com/eduNEXT/edunext-grafana-dashboards/commit/e62b0c478f65b617472da446163111c2ce6e67ea))
21 changes: 21 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.DEFAULT_GOAL := help

release: ## release a new version
@echo "Releasing a new version."
@echo "This is a remote release, it will push to the remote repository."
semantic-release -vv version --changelog --push --tag --commit

local-release:
@echo "Releasing a new version."
@echo "This is a local release, it will not push to the remote repository."
@echo "You can push the changes and release manually."
semantic-release -vv version --changelog --commit --no-push

selfcheck: ## check that the Makefile is well-formed
@echo "The Makefile is well-formed."

ESCAPE = \033
help: ## Print this help
@grep -E '^([.a-zA-Z_-]+:.*?## .*|######* .+)$$' Makefile \
| sed 's/######* \(.*\)/@ $(ESCAPE)[1;31m\1$(ESCAPE)[0m/g' | tr '@' '\n' \
| awk 'BEGIN {FS = ":.*?## "}; {printf "\033[33m%-30s\033[0m %s\n", $$1, $$2}'
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[project.optional-dependencies]
dev = [
"python-semantic-release",
]

0 comments on commit eadc4da

Please sign in to comment.