-
Notifications
You must be signed in to change notification settings - Fork 46
Add GitHub action to copy unversioned pages over latest #393
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| name: Copy unversioned pages | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - gh-pages | ||
| paths: | ||
| - 'dev/developers/**' | ||
| - 'dev/index.html' | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| copy-pages: | ||
| name: Copy unversioned pages | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Clone artifacts repo | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Copy pages | ||
| run: | | ||
| ls -la | ||
| cp -Rv ./dev/developers/ ./stable/ | ||
| cp -v ./dev/index.html ./stable/ | ||
|
Comment on lines
+22
to
+24
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this really a good idea? Once we updated theme, the copied pages will be with new theme, when rest will be with old one.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you mean: a javascript that, every time the developer docs are accessed by a reader, replaces the contents on the fly? I have not explored this possibility, I can take a look 🤔 |
||
|
|
||
| - name: Commit files | ||
| run: | | ||
| git config --local user.email "action@github.com" | ||
| git config --local user.name "GitHub Action" | ||
| git commit -m "Copy unversioned files" -a | ||
|
|
||
| - name: Push changes | ||
| uses: ad-m/github-push-action@master | ||
| with: | ||
| github_token: ${{ secrets.GITHUB_TOKEN }} | ||
| branch: gh-pages | ||
Uh oh!
There was an error while loading. Please reload this page.