diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9a23dc5..b6c62af 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,6 +4,8 @@ name: Test shareableviz-action permissions: contents: write + # pages: write + id-token: write on: push: diff --git a/action.yml b/action.yml index 5e98604..bee5593 100644 --- a/action.yml +++ b/action.yml @@ -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 }} @@ -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