Skip to content

Commit

Permalink
Fix deployment workflow
Browse files Browse the repository at this point in the history
Signed-off-by: jsetton <[email protected]>
  • Loading branch information
jsetton committed Nov 13, 2024
1 parent e66ca0c commit 745ac6d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ permissions:
jobs:
docs:
name: Documentation Deployment
if: github.event.release.prerelease != true
if: github.event_name == 'release' && !github.event.release.prerelease
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -43,9 +43,9 @@ jobs:
- name: Generate deployment config
run: node .github/scripts/generateDeployConfig.js
env:
DEPLOY_ENV: ${{ github.event.release.prerelease && 'development' || 'live' }}
DEPLOY_ENV: ${{ github.event_name == 'release' && !github.event.release.prerelease && 'live' || 'development' }}
FUNCTION_NAME: openhab-alexa
LOG_LEVEL: ${{ github.event.release.prerelease && 'info' || 'error' }}
LOG_LEVEL: ${{ github.event_name == 'release' && !github.event.release.prerelease && 'error' || 'info' }}
OPENHAB_BASE_URL: https://myopenhab.org
RELEASE_VERSION: ${{ github.event.release.tag_name }}
SKILL_ID: ${{ secrets.SKILL_ID }}
Expand All @@ -68,7 +68,7 @@ jobs:
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

- name: Submit skill for certification
if: github.event.release.prerelease != true
if: github.event_name == 'release' && !github.event.release.prerelease
run: >
ask smapi submit-skill-for-certification
--skill-id "${{ secrets.SKILL_ID }}"
Expand Down

0 comments on commit 745ac6d

Please sign in to comment.