Skip to content

Commit

Permalink
Fix github action deployment submit skill for certification (#688)
Browse files Browse the repository at this point in the history
Signed-off-by: jsetton <[email protected]>
  • Loading branch information
jsetton authored Jul 6, 2024
1 parent 34072ae commit 9456190
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 111 deletions.
98 changes: 0 additions & 98 deletions .github/scripts/submitSkillForCertification.js

This file was deleted.

9 changes: 1 addition & 8 deletions .github/scripts/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,5 @@ module.exports = {
} catch {
throw new Error(`Failed to save schema: ${file}`);
}
},

/**
* Sleeps for a given number of milliseconds
* @param {Number} msec
* @return {Promise}
*/
sleep: (msec) => new Promise((resolve) => setTimeout(resolve, msec))
}
};
10 changes: 5 additions & 5 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ jobs:

- name: Submit skill for certification
if: github.event.release.prerelease != true
run: node .github/scripts/submitSkillForCertification.js
run: >
ask smapi submit-skill-for-certification
--skill-id "${{ secrets.SKILL_ID }}"
--publication-method "AUTO_PUBLISHING"
--version-message "Release ${{ github.event.release.tag_name }}"
env:
ASK_ACCESS_TOKEN: ${{ secrets.ASK_ACCESS_TOKEN }}
ASK_REFRESH_TOKEN: ${{ secrets.ASK_REFRESH_TOKEN }}
ASK_VENDOR_ID: ${{ secrets.ASK_VENDOR_ID }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
RELEASE_VERSION: ${{ github.event.release.tag_name }}
SKILL_ID: ${{ secrets.SKILL_ID }}

0 comments on commit 9456190

Please sign in to comment.