Skip to content

Commit bf148b5

Browse files
Create auto release process (#259)
1 parent e8b47d2 commit bf148b5

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/build.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
required: true
8+
description: 'Release version'
9+
10+
jobs:
11+
release_pr:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- uses: actions/setup-node@v3
18+
with:
19+
node-version: 18
20+
cache: 'npm'
21+
22+
- name: Bump version and config
23+
run: |
24+
npm run install
25+
npm run build
26+
git add -f build
27+
28+
- name: Commit build files
29+
uses: stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a
30+
with:
31+
commit_message: "Release ${{ github.event.inputs.version }} [ci release]"
32+
branch: "releases"
33+
34+
# - name: Create Release
35+
# uses: softprops/action-gh-release@d4e8205d7e959a9107da6396278b2f1f07af0f9b
36+
# env:
37+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
# with:
39+
# draft: false
40+
# prerelease: false
41+
# body: "${{ steps.changelog.outputs.changelog }}\n\n${{ env.BUILT_WITH }}"
42+
# tag_name: ${{ env.VERSION }}
43+
# target_commitish: ${{ github.ref }}

0 commit comments

Comments
 (0)