Skip to content

Commit 6b23556

Browse files
committed
chore: ♻️ refactor GitHub Actions workflow for release
1 parent 0d9ed19 commit 6b23556

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,27 @@
1-
name: Build packages for release
1+
name: Release
22

33
on:
44
release:
55
types:
66
- published
77

8-
permissions:
9-
id-token: write
10-
attestations: write
11-
contents: write
12-
138
jobs:
149
build:
1510
runs-on: ubuntu-latest
1611

1712
env:
1813
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1914

20-
steps:
21-
- name: 🏷️ Check tag name
22-
run: |
23-
tag="${{ github.ref_name }}"
24-
echo "$tag" | grep -Pq "^v\d+\.\d+\.\d+$" || (echo "::error::Tag name '$tag' does not correct." && exit 1)
15+
permissions:
16+
contents: write
17+
id-token: write
18+
attestations: write
2519

26-
- name: 📥 Clone repository
20+
steps:
21+
- name: 📥 Checkout
2722
uses: actions/checkout@v4.2.2
23+
with:
24+
fetch-depth: 0
2825

2926
- name: ✅ Attest binary
3027
uses: actions/attest-build-provenance@v1.4.4

0 commit comments

Comments
 (0)