Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes issue #70 #86

Merged
merged 3 commits into from
Aug 26, 2021
Merged

Conversation

DanielKotik
Copy link
Contributor

@DanielKotik DanielKotik commented Aug 25, 2021

This PR partly solves issue #70. These changes prevent the "deploy to GitHub pages" step from being executed only by just opening a PR. For that we add a new trigger event which executes the workflow in gh-pages.yml again when a review for the PR is submitted/edited. This allows for filtering the "deploy to GitHub pages" step - it will only run when a reviewer approves the changes made by the PR. Unforunately, due to missing write permissions of the GITHUB_TOKEN, the deployment will still fail. Although I explicitly grant permisssion within the workflow and adjust the permissions on organisation level, this is still an open question.

The deploy step in the GitHub pages workflow is only executed if a
reviewer approves the changes of the PR.
@DanielKotik DanielKotik marked this pull request as ready for review August 25, 2021 13:09
@DanielKotik DanielKotik marked this pull request as draft August 25, 2021 13:10
@DanielKotik DanielKotik marked this pull request as ready for review August 25, 2021 13:11
@DanielKotik DanielKotik marked this pull request as draft August 25, 2021 13:15
@DanielKotik DanielKotik marked this pull request as ready for review August 25, 2021 13:31
@DanielKotik DanielKotik changed the title Fix issue 70 Almost fix issue #70 Aug 25, 2021
@DanielKotik DanielKotik changed the title Almost fix issue #70 Almost fixes issue #70 Aug 25, 2021
@DanielKotik DanielKotik marked this pull request as draft August 26, 2021 09:20
With this setup we circumvent the limitations of `GITHUB_TOKEN`. Forks
can now deploy to GH pages.
@DanielKotik
Copy link
Contributor Author

Due to the limitations of GITHUB_TOKEN I switched to a different authentication mechanism using now a ssh deploy key pair (same mechanism we already use for mirroring to the CASUS orga) for deploying to GitHub pages, as described here. With this issue #70 will be completely fixed.

@DanielKotik DanielKotik changed the title Almost fixes issue #70 Fixes issue #70 Aug 26, 2021
@DanielKotik DanielKotik marked this pull request as ready for review August 26, 2021 10:03
@DanielKotik DanielKotik merged commit 93081a3 into atomec-project:develop Aug 26, 2021
@DanielKotik DanielKotik deleted the fix-issue-70 branch August 26, 2021 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some checks fail regulary due to permission errors
2 participants