-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# devlooped/oss - Remove duplicate community files and unused stuff devlooped/oss@a4b66eb - Update readme for oss template, fix workflow config devlooped/oss@ee813ef - Add specific skip rules for tests devlooped/oss@448cf45 - Switch to old nuget.config for package sources devlooped/oss@c6f74ce # clarius/pages - Add cross-posting pages workflow clarius/pages@d3b026e - Create Gemfile clarius/pages@565a77f
- Loading branch information
Showing
11 changed files
with
68 additions
and
52 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
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,21 @@ | ||
# Workflow to cross-post a jekyll site (or GitHub Pages) | ||
# to another org/repo. | ||
# Required secrets in repository consuming this workflow: | ||
# - PAGES_ORGANIZATION: the target organization to publish | ||
# pages to. | ||
# - PAGES_ACCESS_TOKEN: a token that is valid in the target | ||
# org/repo for pushing the resulting site | ||
# - PAGES_REPOSITORY: optional repository name under the | ||
# target organization. Defaults to source repo name. | ||
|
||
name: pages | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
- pages | ||
- docs | ||
|
||
env: | ||
PAGES_ORGANIZATION: ${{ secrets.PAGES_ORGANIZATION }} | ||
|
@@ -13,7 +24,23 @@ env: | |
jobs: | ||
gh-pages: | ||
runs-on: ubuntu-latest | ||
env: | ||
PAGES_ORGANIZATION: ${{ secrets.PAGES_ORGANIZATION }} | ||
PAGES_REPOSITORY: ${{ secrets.PAGES_REPOSITORY }} | ||
PAGES_ACCESS_TOKEN: ${{ secrets.PAGES_ACCESS_TOKEN }} | ||
steps: | ||
- name: ✅ organization | ||
if: env.PAGES_ORGANIZATION == '' | ||
run: | | ||
echo "::error title=PAGES_ORGANIZATION secret is required." | ||
exit 1 | ||
- name: ✅ token | ||
if: env.PAGES_ACCESS_TOKEN == '' | ||
run: | | ||
echo "::error title=PAGES_ACCESS_TOKEN secret is required." | ||
exit 1 | ||
- name: 🤘 checkout | ||
uses: actions/checkout@v2 | ||
|
||
|
@@ -22,14 +49,6 @@ jobs: | |
sudo gem install bundler | ||
bundle install | ||
- name: 🖉 default env | ||
env: | ||
PAGES_ORGANIZATION: ${{ secrets.PAGES_ORGANIZATION }} | ||
PAGES_REPOSITORY: ${{ secrets.PAGES_REPOSITORY }} | ||
run: | | ||
echo "PAGES_ORGANIZATION=${PAGES_ORGANIZATION}" >> $GITHUB_ENV | ||
echo "PAGES_REPOSITORY=${PAGES_REPOSITORY}" >> $GITHUB_ENV | ||
- name: 🖉 default repo | ||
if: env.PAGES_REPOSITORY == '' | ||
run: echo "PAGES_REPOSITORY=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV | ||
|
@@ -44,14 +63,14 @@ jobs: | |
cd _site | ||
git init | ||
git add -A | ||
git config --local user.email "bot@devlooped.com" | ||
git config --local user.name "bot@devlooped.com" | ||
git config --local user.email "bot@clarius.org" | ||
git config --local user.name "bot@clarius.org" | ||
git commit -m "Publish pages from ${GITHUB_REPOSITORY}@${GITHUB_SHA:0:9}" | ||
- name: 🚀 push | ||
uses: ad-m/[email protected] | ||
with: | ||
github_token: ${{ secrets.PAGES_ACCESS_TOKEN }} | ||
github_token: ${{ env.PAGES_ACCESS_TOKEN }} | ||
repository: ${{ env.PAGES_ORGANIZATION }}/${{ env.PAGES_REPOSITORY }} | ||
branch: gh-pages | ||
force: true | ||
|
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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'github-pages', '~> 209', group: :jekyll_plugins | ||
gem 'github-pages', '~> 209', group: :jekyll_plugins |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
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