-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #97 from NBISweden/dev-percyfal
Dev percyfal
- Loading branch information
Showing
9 changed files
with
1,388 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ on: | |
- 'main' | ||
- 'test-build' | ||
tags: | ||
- "*" | ||
- "v*" | ||
|
||
env: | ||
PARTICIPANT_DATA: | ||
|
@@ -98,3 +98,47 @@ jobs: | |
path: docs | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Render tag and save rendered state in separate branch | ||
uses: quarto-dev/quarto-actions/publish@v2 | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
with: | ||
target: ${{ github.ref_name }} | ||
path: docs | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# - name: Checkout archived course versions | ||
# env: | ||
# GITHUB_EMAIL: [email protected] | ||
# GITHUB_USERNAME: gh_action | ||
# TARGET: gh_pages | ||
# run: | | ||
# # Add git info | ||
# git config --global user.email "${{ env.GITHUB_EMAIL }}" | ||
# git config --global user.name "${{ env.GITHUB_USERNAME }}" | ||
# git clone --single-branch --branch ${{ env.TARGET }} "https://${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git" tmprepo | ||
# cd tmprepo | ||
# mkdir -p archive | ||
# cd archive | ||
# git branch -l | ||
# ls -lh | ||
|
||
# # Add archive index page | ||
# cat .header.html > index.html | ||
|
||
# # Loop tags that match v\d+ | ||
# for tag in $(git tag --list v[0-9][0-9][0-9][0-9]); do | ||
# if [ -d $tag ]; then | ||
# echo "Directory ${tag} already exsists. Removing" | ||
# git clone --depth 1 --branch $tag "https://${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git" $tag | ||
# contents=$(git tag -n 100 $tag --format "%(contents)") | ||
# echo "<section id=\"$tag\" class=\"level3\">" >> index.html | ||
# echo "<h3 class=\"anchored\" data-anchor-id=\"$tag\">" >> index.html | ||
# echo "<a href=\"$link\">$tag</a>" >> index.html | ||
# echo "</h3>" >> index.html | ||
# echo "<p>$contents</p>" >> index.html | ||
# echo "</section>" >> index.html | ||
# done | ||
|
||
# cat .footer.html >> index.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.