File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed
Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ #
2+ # Workflow to release, triggered by a push onto the protected main branch
3+
4+ name : Release
5+
6+ #
7+ # Operational Variables
8+
9+ env :
10+ MAJOR : 0
11+ MINOR : 0
12+ PYTHON_VERSION : 3.9.6
13+
14+ #
15+ # Establish when the workflow is run
16+
17+ on :
18+ push :
19+ branches :
20+ - main
21+
22+ #
23+ # Workflow
24+
25+ jobs :
26+
27+ build :
28+ runs-on : ubuntu-latest
29+ steps :
30+
31+ - name : Determine whether this is a release build
32+ run : echo "We will be performing a release upon success"
33+
34+ - name : Pipeline Debugging
35+ run : |
36+ env
37+
38+ - name : Checkout out our code
39+ uses : actions/checkout@v2
40+
41+ - name : Conditionally perform a release
42+ uses : elgohr/Github-Release-Action@master
43+ env :
44+ GITHUB_TOKEN : ${{ secrets.RELEASE_TOKEN }}
45+ with :
46+ args : Creating release
You can’t perform that action at this time.
0 commit comments