Skip to content

Commit

Permalink
conditional action
Browse files Browse the repository at this point in the history
  • Loading branch information
ravi-kumar-pilla committed Mar 8, 2024
1 parent 5d08253 commit af520a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ name: Test shareableviz-action

permissions:
contents: write
# pages: write
id-token: write

on:
push:
Expand Down
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ runs:
fi
shell: bash
- name: Deploy to GitHub Pages with publish branch as source
if: ${{ inputs.publishing_source }} == 'branch'
if: ${{ inputs.publishing_source == 'branch' }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ inputs.github_token }}
Expand All @@ -76,10 +76,10 @@ runs:
commit_message: ${{ inputs.commit_message }}
force_orphan: true
- name: Upload Pages artifact
if: ${{ inputs.publishing_source }} == 'workflow'
if: ${{ inputs.publishing_source == 'workflow' }}
uses: actions/upload-pages-artifact@v3
with:
path: "./build"
- name: Deploy to GitHub Pages
if: ${{ inputs.publishing_source }} == 'workflow'
if: ${{ inputs.publishing_source == 'workflow' }}
uses: actions/deploy-pages@v4

0 comments on commit af520a2

Please sign in to comment.