Skip to content

Commit

Permalink
feat(action): add release and renovate action
Browse files Browse the repository at this point in the history
  • Loading branch information
pplmx committed Sep 25, 2022
1 parent 65d6f2a commit 85d5115
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
]
}
9 changes: 6 additions & 3 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,20 @@ jobs:
env:
PROJECT_NAME: example
steps:
- name: Checkout repository
-
name: Checkout repository
uses: actions/checkout@v3

- name: Run cargo generate
-
name: Run cargo generate
uses: cargo-generate/cargo-generate-action@v0.16.0
with:
name: ${{ env.PROJECT_NAME }}
subfolder: template/cxx
template_values_file: .github/workflows/template_values.toml

- name: Deploy
-
name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.GH_EXAMPLE_DEPLOY_SECRET }}
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: X Project Template Release

on:
push:
tags:
- "v*.*.*"

jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Release
uses: softprops/action-gh-release@v1
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- [template] introduce renovate
- [template] introduce release action
- [cpp] add renovate.json
- [template] introduce the issue template
- [template] introduce the pull request template

### Changed

- [cpp] add renovate.json
- [cpp] image-building only triggers when a tag is pushed
- [cpp] remove audit action
- [cpp] keep Makefile even if it is a CMake project
Expand Down

0 comments on commit 85d5115

Please sign in to comment.