-
Notifications
You must be signed in to change notification settings - Fork 796
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pdksync - PDK Update - Replace Travis and Appveyor with Github Actions (
#1374) This PR covers a few changes: * Replace Travis and Appveyor with Github Actions * Repair spec tests * Remove debian from testing process * Replace lsbdistcodename with operatingsystemmajrelease in order to avoid warning * PDK update * Add lsb-release dependency
- Loading branch information
carabasdaniel
authored
Apr 29, 2021
1 parent
a6101cb
commit d10ee89
Showing
26 changed files
with
417 additions
and
324 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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:2.1.0.0 | ||
with: | ||
args: 'build' | ||
- name: "Push to Forge" | ||
uses: docker://puppet/pdk:2.1.0.0 | ||
with: | ||
args: 'release publish --forge-token ${{ secrets.FORGE_API_KEY }} --force' |
Oops, something went wrong.