-
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (56 loc) · 1.9 KB
/
release.yml
File metadata and controls
65 lines (56 loc) · 1.9 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
name: Create Release
on:
workflow_dispatch:
inputs:
tag:
description: 'Tag to create (e.g. v1.0.0)'
required: true
default: 'v1.0.0'
floating_tag:
description: 'Floating major tag (e.g. v1)'
required: true
default: 'v1'
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
- name: Create and push tags
shell: bash
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
# Create versioned tag
git tag -a "${{ github.event.inputs.tag }}" \
-m "Release ${{ github.event.inputs.tag }}"
git push origin "${{ github.event.inputs.tag }}"
# Create / force-update floating major tag
git tag -fa "${{ github.event.inputs.floating_tag }}" \
-m "Floating tag ${{ github.event.inputs.floating_tag }} -> ${{ github.event.inputs.tag }}"
git push origin "${{ github.event.inputs.floating_tag }}" --force
- name: Publish GitHub Release
uses: softprops/action-gh-release@v2.2.2
with:
tag_name: ${{ github.event.inputs.tag }}
name: "DevLens ${{ github.event.inputs.tag }}"
body: |
## 🚀 DevLens ${{ github.event.inputs.tag }}
### What's included
- Repository health scoring across 7 dimensions
- Auto-inject live badge into README on every push
- Weekly digest workflow
- Zero-config setup
### Usage
```yaml
- uses: samotech/devlens@v1
```
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}