aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Nagy <gabriel.nagy@puppet.com>2021-10-01 11:34:32 +0300
committerGabriel Nagy <gabriel.nagy@puppet.com>2021-10-01 11:36:43 +0300
commite764dc27e0dbeccd36d3d9d11bebc25f8cb39e3a (patch)
tree7c8e17b4614e7de88fe779605b245cc22466c8b5
parentb6e01188a676f34f6e8998de1a87c169c893fc17 (diff)
downloadpuppet-augeas_core-e764dc27e0dbeccd36d3d9d11bebc25f8cb39e3a.tar.gz
puppet-augeas_core-e764dc27e0dbeccd36d3d9d11bebc25f8cb39e3a.tar.bz2
(MODULES-11197) Run pdk update to add release workflow
-rw-r--r--.github/workflows/release.yml47
-rw-r--r--.sync.yml2
2 files changed, 49 insertions, 0 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/.sync.yml b/.sync.yml
index c359491..5badaa2 100644
--- a/.sync.yml
+++ b/.sync.yml
@@ -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