Skip to content

Commit ed24045

Browse files
committed
chore: automate release
1 parent d6b853b commit ed24045

File tree

2 files changed

+31
-6
lines changed

2 files changed

+31
-6
lines changed

.github/workflows/release.yml

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ jobs:
1111
permissions:
1212
contents: write
1313
steps:
14+
- name: Create PR
15+
uses: huacnlee/zed-extension-action@v1
16+
with:
17+
extension-name: min-theme
18+
push-to: phibr0/extensions
19+
env:
20+
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}
21+
1422
- uses: actions/checkout@v4
1523
with:
1624
fetch-depth: 0
@@ -20,10 +28,27 @@ jobs:
2028

2129
- run: bun merge.js
2230

23-
- name: Create PR
24-
uses: huacnlee/zed-extension-action@v1
31+
- name: Get Version
32+
id: version
33+
run: echo "tag=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
34+
35+
- name: Create Release
36+
id: create_release
37+
uses: actions/create-release@v1
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2540
with:
26-
extension-name: min-theme
27-
push-to: phibr0/extensions
41+
tag_name: ${{ github.ref_name }}
42+
release_name: Release ${{ github.ref_name }}
43+
draft: false
44+
prerelease: false
45+
46+
- name: Upload Theme File
47+
uses: actions/upload-release-asset@v1
2848
env:
29-
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
with:
51+
upload_url: ${{ steps.create_release.outputs.upload_url }}
52+
asset_path: ./min-theme.json
53+
asset_name: min-theme.json
54+
asset_content_type: application/json

extension.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
id = "min-theme"
22
name = "Min Theme"
3-
version = "0.1.6"
3+
version = "0.1.8"
44
schema_version = 1
55
authors = ["Phillip Bronzel <[email protected]>"]
66
description = "A port of miguelsolorio's Min Theme for Zed."

0 commit comments

Comments
 (0)