Skip to content

Commit

Permalink
feat: initial version
Browse files Browse the repository at this point in the history
  • Loading branch information
entelecheia committed Feb 24, 2023
1 parent f0b9677 commit d34d5a3
Show file tree
Hide file tree
Showing 28 changed files with 957 additions and 28 deletions.
20 changes: 20 additions & 0 deletions .copier-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Changes here will be overwritten by Copier; do NOT edit manually
_commit: v0.2.8
_src_path: gh:entelecheia/hyperfast-template
author: Young Joon Lee
copyright_year: 2023
dist_path: dist
documentation_url: https://dotfiles.entelecheia.cc
email: entelecheia@hotmail.com
friendly_name: Dotfiles
github_repo_name: dotfiles
github_username: entelecheia
project_description: Dotfiles are configuration files that are used to customize your
shell and other applications. Dotfiles are a great way to standardize your development
environment. You can use the same dotfiles in your local development environment,
in your CI/CD pipeline, and in your production environment.
project_license: MIT
project_name: dotfiles
project_short_description: Dotfiles management for CI/CD
version_file: .version

24 changes: 24 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Check http://editorconfig.org for more information

# top-most .editorconfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true
indent_style = space

[*.py]
profile = black

[Makefile]
indent_style = tab

[*.md]
trim_trailing_whitespace = false

[*.{yaml,yml}]
indent_size = 2
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
27 changes: 27 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
time: "03:00"
timezone: "Asia/Seoul"
labels:
- ":game_die: dependencies"
- ":robot: bot"
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
time: "03:00"
timezone: "Asia/Seoul"
allow:
- dependency-type: "production"
labels:
- ":game_die: dependencies"
- ":robot: bot"
66 changes: 66 additions & 0 deletions .github/labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
---
# Labels names are important as they are used by Release Drafter to decide
# regarding where to record them in changelog or if to skip them.
#
# The repository labels will be automatically configured using this file and
# the GitHub Action /~https://github.com/marketplace/actions/github-labeler.
- name: breaking
description: Breaking Changes
color: bfd4f2
- name: bug
description: Something isn't working
color: d73a4a
- name: build
description: Build System and Dependencies
color: bfdadc
- name: ci
description: Continuous Integration
color: 4a97d6
- name: dependencies
description: Pull requests that update a dependency file
color: 0366d6
- name: documentation
description: Improvements or additions to documentation
color: 0075ca
- name: duplicate
description: This issue or pull request already exists
color: cfd3d7
- name: enhancement
description: New feature or request
color: a2eeef
- name: github_actions
description: Pull requests that update Github_actions code
color: "000000"
- name: good first issue
description: Good for newcomers
color: 7057ff
- name: help wanted
description: Extra attention is needed
color: 008672
- name: invalid
description: This doesn't seem right
color: e4e669
- name: performance
description: Performance
color: "016175"
- name: python
description: Pull requests that update Python code
color: 2b67c6
- name: question
description: Further information is requested
color: d876e3
- name: refactoring
description: Refactoring
color: ef67c4
- name: removal
description: Removals and Deprecations
color: 9ae7ea
- name: style
description: Style
color: c120e5
- name: testing
description: Testing
color: b1fc6f
- name: wontfix
description: This will not be worked on
color: ffffff
20 changes: 20 additions & 0 deletions .github/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
changelog:
exclude:
labels:
- ignore-for-release
authors:
- octocat
categories:
- title: Breaking Changes 🛠
labels:
- breaking
- title: Exciting New Features 🎉
labels:
- feature
- title: Fixes 🔧
labels:
- fix
- title: Other Changes
labels:
- "*"
41 changes: 41 additions & 0 deletions .github/workflows/deploy-docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
name: deploy-docs
on:
workflow_call:
workflow_dispatch:
push:
branches:
- main
# Paths can be used to only trigger actions when you have edited certain files, such as a file within the /docs directory
paths:
- "README.md"
- "mkdocs.yaml"
- "docs/**.md"
- "docs/images/**"

permissions:
contents: write

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

# install copier and init project
- name: Install copier and init project
if: github.repository == 'entelecheia/hyperfast-template'
run: |
pipx install copier>=7.0.0
make reinit-project-force
- uses: actions/setup-python@v4
with:
python-version: 3.x

- uses: actions/cache@v3
with:
key: ${{ github.ref }}
path: .cache
- run: pip install -r docs/requirements.txt
- run: mkdocs gh-deploy --force
51 changes: 51 additions & 0 deletions .github/workflows/prerelease.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
name: semantic-prerelease

on:
workflow_call:
workflow_dispatch:
push:
branches:
- pre*
- beta*
- alpha*
- rc*
- nigtly*

permissions:
contents: write
issues: write
pull-requests: write

jobs:
build:
# Name the Job
name: semantic-prerelease
# Set the agent to run on
runs-on: ubuntu-latest

# Load all steps #
steps:
# Checkout the code base #
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0

# install copier and init project
- name: Install copier and init project
if: github.repository == 'entelecheia/hyperfast-template'
run: |
pipx install copier>=7.0.0
make reinit-project-force
# set env variable
- name: Set env variable
run: echo "BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV

# semantic prerelease
- name: Python Semantic Release
uses: relekang/python-semantic-release@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
additional_options: --prerelease --verbosity=DEBUG --define=branch=${{ env.BRANCH }}
48 changes: 48 additions & 0 deletions .github/workflows/release-patch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
name: semantic-release-patch

on:
workflow_call:
workflow_dispatch:
push:
branches:
- patch*
- hotfix*

permissions:
contents: write
issues: write
pull-requests: write

jobs:
build:
# Name the Job
name: semantic-release-patch
# Set the agent to run on
runs-on: ubuntu-latest

# Load all steps #
steps:
# Checkout the code base #
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0

# install copier and init project
- name: Install copier and init project
if: github.repository == 'entelecheia/hyperfast-template'
run: |
pipx install copier>=7.0.0
make reinit-project-force
# set env variable
- name: Set env variable
run: echo "BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV

# semantic prerelease
- name: Python Semantic Release
uses: relekang/python-semantic-release@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
additional_options: --patch --verbosity=DEBUG --define=branch=${{ env.BRANCH }}
47 changes: 47 additions & 0 deletions .github/workflows/release-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
name: semantic-release-test

on:
workflow_call:
workflow_dispatch:
pull_request:
branches:
- main

permissions:
contents: write
issues: write
pull-requests: write

jobs:
build:
# Name the Job
name: semantic-release-test
# Set the agent to run on
runs-on: ubuntu-latest

# Load all steps #
steps:
# Checkout the code base #
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0

# install copier and init project
- name: Install copier and init project
if: github.repository == 'entelecheia/hyperfast-template'
run: |
pipx install copier>=7.0.0
make reinit-project-force
# set env variable
- name: Set env variable
run: echo "BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV

# semantic prerelease
- name: Python Semantic Release
uses: relekang/python-semantic-release@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
additional_options: --noop --verbosity=DEBUG --define=branch=${{ env.BRANCH }}
Loading

0 comments on commit d34d5a3

Please sign in to comment.