-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (41 loc) · 1.2 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Release
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Update
run: make update
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
with:
git_config_global: true
git_commit_gpgsign: true
git_user_signingkey: true
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
trust_level: ultimate
- name: Add, Commit & Push
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "feat: update knowledge base index"
commit_user_email: [email protected]
commit_user_name: "Ivan Gabriele (Github)"
- name: Create Release Tag
id: tag
run: echo "RELEASE_TAG=v$(date +'%Y.%m.%d')" >> $GITHUB_OUTPUT
- name: Release
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: "*.tar.gz"
token: ${{ secrets.GH_TOKEN }}
tag: ${{ steps.tag.outputs.RELEASE_TAG }}