Skip to content

Commit

Permalink
Restore jekyll-publish.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneromero committed Sep 4, 2023
1 parent d7c3a5d commit d3888df
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/jekyll-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ jobs:
mode: addition
tolerance: mixed

# - name: Deploy to Azure Static Web App
# uses: Azure/static-web-apps-deploy@v1
# with:
# azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
# action: upload
# app_location: ${{ github.workspace }}/_site
# skip_app_build: true
# output_location: ""
- name: Deploy to Azure Static Web App
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
action: upload
app_location: ${{ github.workspace }}/_site
skip_app_build: true
output_location: ""

- name: Get new post info
# if: contains(steps.new-post-check.outputs.output, 'title')
if: contains(steps.new-post-check.outputs.output, 'title')
run: |
latest=${{ github.workspace }}/_site/latest.json
Expand All @@ -67,7 +67,9 @@ jobs:

- name: Publish on LinkedIn through IFTTT
uses: actionsflow/ifttt-webhook-action@v1
if: env.PUBLISH_TO_LINKEDIN == 'true'
if: |
contains(steps.new-post-check.outputs.output, 'title')
&& env.PUBLISH_TO_LINKEDIN == 'true'
with:
event: new_damn_engineer_blog_post
key: ${{ secrets.IFTTT_WEBHOOK_KEY }}
Expand Down

0 comments on commit d3888df

Please sign in to comment.