Skip to content

Commit d60b9b4

Browse files
committed
testing github action v2
1 parent 647fa6d commit d60b9b4

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

.github/workflows/release.yml

+17-5
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,34 @@ permissions:
55

66
on:
77
push:
8-
tags:
9-
- "v*"
8+
branches:
9+
- alpha # Trigger on pushes to alpha branch
1010

1111
jobs:
1212
release:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v3
1616
with:
17-
fetch-depth: 0
17+
fetch-depth: 0 # Fetch all history for tagging
18+
19+
- name: Set Git User
20+
run: |
21+
git config --local user.email "[email protected]"
22+
git config --local user.name "GitHub Action"
23+
24+
- name: Create Tag
25+
run: |
26+
git tag -a "v${{ github.run_number }}" -m "Release v${{ github.run_number }}"
27+
git push origin "v${{ github.run_number }}"
28+
1829
- id: setup-bun
1930
name: Setup Bun
2031
uses: oven-sh/setup-bun@v1
2132
with:
2233
bun-version: latest
2334

24-
- run: bunx changelogithub
35+
- name: Generate Changelog
36+
run: bunx changelogithub
2537
env:
26-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)