Skip to content

Commit 4962261

Browse files
Release build 4.2.0 [ci release]
1 parent 894fbfb commit 4962261

File tree

3 files changed

+71
-3481
lines changed

3 files changed

+71
-3481
lines changed

.github/workflows/build.yml

+12-14
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
name: Release
22

33
on:
4-
push:
5-
branches:
6-
- main
74
workflow_dispatch:
5+
inputs:
6+
version:
7+
required: true
8+
description: 'Release version'
89

910
jobs:
1011
release_pr:
@@ -33,23 +34,20 @@ jobs:
3334
run: |
3435
git add -f build/ Sources/
3536
36-
- name: Get version
37-
env:
38-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39-
run: |
40-
npx auto version
41-
echo "VERSION=$(npx auto version)" >> $GITHUB_ENV
42-
4337
- name: Commit build files
4438
uses: stefanzweifel/git-auto-commit-action@v4
4539
with:
46-
commit_message: "Release build ${{ env.VERSION }} [ci release]"
40+
commit_message: "Release build ${{ github.event.inputs.version }} [ci release]"
4741
commit_options: '--allow-empty'
4842
skip_checkout: true
4943
branch: "releases"
5044

51-
- name: Ship
45+
- name: Create Release
46+
uses: softprops/action-gh-release@v1
5247
env:
5348
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54-
run: |
55-
npx auto release
49+
with:
50+
draft: false
51+
prerelease: false
52+
tag_name: ${{ env.VERSION }}
53+
target_commitish: "releases"

0 commit comments

Comments
 (0)