aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/release.yml47
-rw-r--r--.rubocop.yml21
-rw-r--r--.sync.yml22
3 files changed, 67 insertions, 23 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 0000000..1509f6e
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,47 @@
+name: "Publish module"
+
+on:
+ workflow_dispatch:
+
+jobs:
+ create-github-release:
+ name: Deploy GitHub Release
+ runs-on: ubuntu-20.04
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v2
+ with:
+ ref: ${{ github.ref }}
+ clean: true
+ fetch-depth: 0
+ - name: Get Version
+ id: gv
+ run: |
+ echo "::set-output name=ver::$(jq --raw-output .version metadata.json)"
+ - name: Create Release
+ uses: actions/create-release@v1
+ id: create_release
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ tag_name: "v${{ steps.gv.outputs.ver }}"
+ draft: false
+ prerelease: false
+
+ deploy-forge:
+ name: Deploy to Forge
+ runs-on: ubuntu-20.04
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v2
+ with:
+ ref: ${{ github.ref }}
+ clean: true
+ - name: "PDK Build"
+ uses: docker://puppet/pdk:nightly
+ with:
+ args: 'build'
+ - name: "Push to Forge"
+ uses: docker://puppet/pdk:nightly
+ with:
+ args: 'release publish --forge-token ${{ secrets.FORGE_API_KEY }} --force'
diff --git a/.rubocop.yml b/.rubocop.yml
index ac0ebd8..4416e78 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -21,6 +21,7 @@ AllCops:
Layout/LineLength:
Description: People have wide screens, use them.
Max: 200
+ Enabled: false
RSpec/BeforeAfterAll:
Description: Beware of using after(:all) as it may cause state to leak between tests.
A necessary evil in acceptance testing.
@@ -73,21 +74,19 @@ Style/SymbolArray:
EnforcedStyle: brackets
Style/SignalException:
Enabled: false
-Layout/HeredocIndentation:
- Enabled: false
-Metrics/BlockNesting:
- Enabled: false
-Metrics/LineLength:
- Enabled: false
-Style/AccessorMethodName:
- Enabled: false
Style/DoubleNegation:
Enabled: false
Style/MultipleComparison:
Enabled: false
Style/NumericPredicate:
Enabled: false
-Style/PredicateName:
+Layout/HeredocIndentation:
+ Enabled: false
+Metrics/BlockNesting:
+ Enabled: false
+Naming/AccessorMethodName:
+ Enabled: false
+Naming/PredicateName:
Enabled: false
RSpec/VariableName:
Enabled: false
@@ -161,8 +160,6 @@ Layout/FirstArgumentIndentation:
Enabled: false
Layout/HashAlignment:
Enabled: false
-Layout/HeredocIndentation:
- Enabled: false
Layout/LeadingEmptyLines:
Enabled: false
Layout/SpaceAroundMethodCallOperator:
@@ -275,8 +272,6 @@ Metrics/PerceivedComplexity:
Enabled: false
Migration/DepartmentName:
Enabled: false
-Naming/AccessorMethodName:
- Enabled: false
Naming/BlockParameterName:
Enabled: false
Naming/HeredocDelimiterCase:
diff --git a/.sync.yml b/.sync.yml
index c359491..ff66415 100644
--- a/.sync.yml
+++ b/.sync.yml
@@ -2,25 +2,25 @@
default_configs:
Style/SignalException:
Enabled: false
- Layout/IndentHeredoc:
+ Style/DoubleNegation:
Enabled: false
- Metrics/BlockNesting:
+ Style/MultipleComparison:
Enabled: false
- Metrics/LineLength:
+ Style/NumericPredicate:
Enabled: false
- Style/AccessorMethodName:
+ Style/SignalException:
Enabled: false
- Style/DoubleNegation:
+ Layout/HeredocIndentation:
Enabled: false
- Style/MultipleComparison:
+ Layout/LineLength:
Enabled: false
- Style/NumericPredicate:
+ Metrics/BlockNesting:
Enabled: false
- Style/PredicateName:
+ Naming/AccessorMethodName:
Enabled: false
- Style/SignalException:
+ Naming/PredicateName:
Enabled: false
- Style/VariableName:
+ RSpec/VariableName:
Enabled: false
Gemfile:
optional:
@@ -50,6 +50,8 @@ appveyor.yml:
delete: true
.github/workflows/auto_release.yml:
unmanaged: false
+.github/workflows/release.yml:
+ unmanaged: false
.gitlab-ci.yml:
delete: true