File tree Expand file tree Collapse file tree 3 files changed +67
-23
lines changed Expand file tree Collapse file tree 3 files changed +67
-23
lines changed Original file line number Diff line number Diff line change 1+ name : " Publish module"
2+
3+ on :
4+ workflow_dispatch :
5+
6+ jobs :
7+ create-github-release :
8+ name : Deploy GitHub Release
9+ runs-on : ubuntu-20.04
10+ steps :
11+ - name : Checkout code
12+ uses : actions/checkout@v2
13+ with :
14+ ref : ${{ github.ref }}
15+ clean : true
16+ fetch-depth : 0
17+ - name : Get Version
18+ id : gv
19+ run : |
20+ echo "::set-output name=ver::$(jq --raw-output .version metadata.json)"
21+ - name : Create Release
22+ uses : actions/create-release@v1
23+ id : create_release
24+ env :
25+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
26+ with :
27+ tag_name : " v${{ steps.gv.outputs.ver }}"
28+ draft : false
29+ prerelease : false
30+
31+ deploy-forge :
32+ name : Deploy to Forge
33+ runs-on : ubuntu-20.04
34+ steps :
35+ - name : Checkout code
36+ uses : actions/checkout@v2
37+ with :
38+ ref : ${{ github.ref }}
39+ clean : true
40+ - name : " PDK Build"
41+ uses : docker://puppet/pdk:nightly
42+ with :
43+ args : ' build'
44+ - name : " Push to Forge"
45+ uses : docker://puppet/pdk:nightly
46+ with :
47+ args : ' release publish --forge-token ${{ secrets.FORGE_API_KEY }} --force'
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ AllCops:
2121Layout/LineLength :
2222 Description : People have wide screens, use them.
2323 Max : 200
24+ Enabled : false
2425RSpec/BeforeAfterAll :
2526 Description : Beware of using after(:all) as it may cause state to leak between tests.
2627 A necessary evil in acceptance testing.
@@ -73,21 +74,19 @@ Style/SymbolArray:
7374 EnforcedStyle : brackets
7475Style/SignalException :
7576 Enabled : false
76- Layout/HeredocIndentation :
77- Enabled : false
78- Metrics/BlockNesting :
79- Enabled : false
80- Metrics/LineLength :
81- Enabled : false
82- Style/AccessorMethodName :
83- Enabled : false
8477Style/DoubleNegation :
8578 Enabled : false
8679Style/MultipleComparison :
8780 Enabled : false
8881Style/NumericPredicate :
8982 Enabled : false
90- Style/PredicateName :
83+ Layout/HeredocIndentation :
84+ Enabled : false
85+ Metrics/BlockNesting :
86+ Enabled : false
87+ Naming/AccessorMethodName :
88+ Enabled : false
89+ Naming/PredicateName :
9190 Enabled : false
9291RSpec/VariableName :
9392 Enabled : false
@@ -161,8 +160,6 @@ Layout/FirstArgumentIndentation:
161160 Enabled : false
162161Layout/HashAlignment :
163162 Enabled : false
164- Layout/HeredocIndentation :
165- Enabled : false
166163Layout/LeadingEmptyLines :
167164 Enabled : false
168165Layout/SpaceAroundMethodCallOperator :
@@ -275,8 +272,6 @@ Metrics/PerceivedComplexity:
275272 Enabled : false
276273Migration/DepartmentName :
277274 Enabled : false
278- Naming/AccessorMethodName :
279- Enabled : false
280275Naming/BlockParameterName :
281276 Enabled : false
282277Naming/HeredocDelimiterCase :
Original file line number Diff line number Diff line change 22 default_configs :
33 Style/SignalException :
44 Enabled : false
5- Layout/IndentHeredoc :
5+ Style/DoubleNegation :
66 Enabled : false
7- Metrics/BlockNesting :
7+ Style/MultipleComparison :
88 Enabled : false
9- Metrics/LineLength :
9+ Style/NumericPredicate :
1010 Enabled : false
11- Style/AccessorMethodName :
11+ Style/SignalException :
1212 Enabled : false
13- Style/DoubleNegation :
13+ Layout/HeredocIndentation :
1414 Enabled : false
15- Style/MultipleComparison :
15+ Layout/LineLength :
1616 Enabled : false
17- Style/NumericPredicate :
17+ Metrics/BlockNesting :
1818 Enabled : false
19- Style/PredicateName :
19+ Naming/AccessorMethodName :
2020 Enabled : false
21- Style/SignalException :
21+ Naming/PredicateName :
2222 Enabled : false
23- Style /VariableName :
23+ RSpec /VariableName :
2424 Enabled : false
2525Gemfile :
2626 optional :
@@ -50,6 +50,8 @@ appveyor.yml:
5050 delete : true
5151.github/workflows/auto_release.yml :
5252 unmanaged : false
53+ .github/workflows/release.yml :
54+ unmanaged : false
5355.gitlab-ci.yml :
5456 delete : true
5557
You can’t perform that action at this time.
0 commit comments