File tree Expand file tree Collapse file tree 2 files changed +49
-0
lines changed Expand file tree Collapse file tree 2 files changed +49
-0
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 @@ -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