Commit bc1d1bc 1 parent 5bba3b5 commit bc1d1bc Copy full SHA for bc1d1bc
File tree 1 file changed +64
-0
lines changed
1 file changed +64
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ release :
5
+ types :
6
+ - published
7
+
8
+ env :
9
+ CARGO_TERM_COLOR : always
10
+
11
+ jobs :
12
+ show_action_parameters :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : Show action parameters
16
+ run : |
17
+ cat <<EOF > $GITHUB_STEP_SUMMARY
18
+ ## Action Parameters
19
+ - target_release_tag: \`${{ github.event.inputs.target_release_tag }}\`
20
+ EOF
21
+
22
+ # ensure the input release tag is valid
23
+ validate_release :
24
+ runs-on : ubuntu-latest
25
+ steps :
26
+ - name : Get github release information
27
+ if : ${{ github.event_name == 'workflow_dispatch' }}
28
+ uses :
cardinalby/[email protected]
29
+ env :
30
+ GITHUB_TOKEN : ${{ github.token }}
31
+ with :
32
+ tag : ${{ github.event.inputs.target_release_tag }}
33
+
34
+ build :
35
+ uses : ./.github/workflows/build.yml
36
+ secrets : inherit
37
+ needs :
38
+ - validate_release
39
+ with :
40
+ release : true
41
+
42
+ release :
43
+ needs :
44
+ - build
45
+ runs-on : ubuntu-latest
46
+
47
+ permissions :
48
+ contents : write
49
+
50
+ steps :
51
+ - name : Display context
52
+ run : |
53
+ echo ref_name = ${{ github.ref_name }}
54
+ echo target_release_tag = ${{ github.event.inputs.target_release_tag }}
55
+
56
+ - name : Download build artifacts
57
+ uses : actions/download-artifact@v4
58
+ with :
59
+ path : build-artifacts
60
+
61
+ - uses : softprops/action-gh-release@v2
62
+ with :
63
+ files : build-artifacts/*
64
+ tag_name : ${{ github.event.inputs.target_release_tag }}
You can’t perform that action at this time.
0 commit comments