-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (63 loc) · 1.84 KB
/
Copy pathrelease.yml
File metadata and controls
76 lines (63 loc) · 1.84 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
---
# yaml-language-server: $schema=https://www.schemastore.org/github-workflow.json
name: release
"on":
workflow_dispatch:
schedule:
- cron: "0 8 * * 1"
permissions:
contents: read
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Setup nodejs
uses: actions/setup-node@v6
with:
node-version: lts/*
- name: Generate token
id: token
uses: actions/create-github-app-token@v3
with:
app-id: ${{ secrets.TOKEN_EXCHANGE_APP }}
private-key: ${{ secrets.TOKEN_EXCHANGE_KEY }}
permission-contents: write
permission-packages: write
- name: Checkout source
uses: actions/checkout@v7
with:
token: ${{ steps.token.outputs.token }}
- name: Install nix
uses: cachix/install-nix-action@v31
with:
extra_nix_config: |
experimental-features = nix-command flakes
- name: Enable cachix
uses: cachix/cachix-action@v17
with:
name: devenv
- name: Write buildtime
run: date >| .github/RELEASE
- name: Install releaser
run: |
npm install -g \
semantic-release@25.0.2 \
@semantic-release/changelog \
@semantic-release/git \
@semantic-release/github \
conventional-changelog-conventionalcommits \
@semantic-release/exec
- name: Run releaser
env:
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
run: semantic-release
- name: Commit changes
uses: EndBug/add-and-commit@v10
with:
author_name: GitHub Actions
author_email: github@cloudhippie.de
add: .github/RELEASE
message: "docs: automated release update [skip ci]"
push: true
commit: --signoff
...