File tree Expand file tree Collapse file tree 3 files changed +53
-0
lines changed Expand file tree Collapse file tree 3 files changed +53
-0
lines changed Original file line number Diff line number Diff line change
1
+ minVersion : 0.34.4 # TODO-neel after craft release
2
+ changelogPolicy : auto
3
+ artifactProvider :
4
+ name : none
5
+ targets :
6
+ - name : hex
Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ version :
7
+ description : Version to release
8
+ required : true
9
+ force :
10
+ description : Force a release even when there are release-blockers (optional)
11
+ required : false
12
+
13
+ jobs :
14
+ release :
15
+ runs-on : ubuntu-latest
16
+ name : " Release a new version"
17
+ steps :
18
+ - uses : actions/checkout@v3
19
+ with :
20
+ token : ${{ secrets.GH_RELEASE_PAT }}
21
+ fetch-depth : 0
22
+ - name : Prepare release
23
+ uses : getsentry/action-prepare-release@v1
24
+ env :
25
+ GITHUB_TOKEN : ${{ secrets.GH_RELEASE_PAT }}
26
+ with :
27
+ version : ${{ github.event.inputs.version }}
28
+ force : ${{ github.event.inputs.force }}
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -eux
3
+
4
+ SCRIPT_DIR=" $( dirname " $0 " ) "
5
+ cd $SCRIPT_DIR /..
6
+
7
+ OLD_VERSION=" ${1} "
8
+ NEW_VERSION=" ${2} "
9
+
10
+ echo " Current version: $OLD_VERSION "
11
+ echo " Bumping version: $NEW_VERSION "
12
+
13
+ function replace() {
14
+ ! grep " $2 " $3
15
+ perl -i -pe " s/$1 /$2 /g" $3
16
+ grep " $2 " $3 # verify that replacement was successful
17
+ }
18
+
19
+ replace " \@version \" [0-9.]+\" " " \@version \" $NEW_VERSION \" " ./mix.exs
You can’t perform that action at this time.
0 commit comments