Skip to content

Commit 9307457

Browse files
committed
ci: add automated release, dependabot and github codeowners
1 parent 482e9ae commit 9307457

File tree

3 files changed

+58
-0
lines changed

3 files changed

+58
-0
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @oknozor

.github/dependabot.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: cargo
4+
directory: /
5+
schedule:
6+
interval: daily
7+
time: "14:05"
8+
open-pull-requests-limit: 10

.github/workflows/Release.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
branches: main
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
name: Perform release
11+
12+
steps:
13+
- name: Checkout sources
14+
uses: actions/checkout@v2
15+
with:
16+
submodules: recursive
17+
fetch-depth: 0
18+
19+
- name: Install stable toolchain
20+
uses: actions-rs/toolchain@v1
21+
with:
22+
profile: minimal
23+
toolchain: stable
24+
override: true
25+
components: rustfmt, clippy
26+
27+
- name: Add gpg test key pair
28+
run: |
29+
gpg --import tests/gpg/public.gpg
30+
gpg --import tests/gpg/private.gpg
31+
echo -e "5\ny\n" | gpg --no-tty --command-fd 0 --expert --edit-key [email protected] trust
32+
33+
# version publish steps are managed by cocogitto, see `cog.toml`
34+
# and https://github.com/oknozor/cocogitto-action for more info
35+
- name: Semver release
36+
id: release
37+
uses: oknozor/[email protected]
38+
with:
39+
release: true
40+
check-latest-tag-only: true
41+
42+
- name: Generate Changelog
43+
run: cog changelog --at ${{ steps.release.outputs.version }} -t full_hash > GITHUB_CHANGELOG.md
44+
45+
- name: Upload github release
46+
uses: softprops/action-gh-release@v1
47+
with:
48+
body_path: GITHUB_CHANGELOG.md
49+
tag_name: ${{ steps.release.outputs.version }}

0 commit comments

Comments
 (0)