-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
158 additions
and
44 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
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 |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: publish | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
repository_dispatch: | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
env: | ||
GH_BOT_EMAIL: "41898282+github-actions[bot]@users.noreply.github.com" | ||
GH_BOT_NAME: "GitHub Action" | ||
DENO_DIR: .deno-cache | ||
REPO: commonhaus/commonhaus.github.io | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
concurrency: | ||
group: "push-content" | ||
cancel-in-progress: true | ||
steps: | ||
- name: Setup Deno environment | ||
uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: v1.x | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Cache Deno dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ env.DENO_DIR }} | ||
key: ${{ hashFiles('deno.lock') }} | ||
|
||
- name: Git Config | ||
run: | | ||
git config user.name ${{ env.GH_BOT_NAME }} | ||
git config user.email ${{ env.GH_BOT_EMAIL }} | ||
- name: Git Submodule Update | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
git pull --recurse-submodules | ||
git submodule update --init --remote --recursive | ||
deno task lastmod | ||
if git diff --quiet; then | ||
echo "-- No changes -- " | ||
else | ||
git commit -am "🆙 Auto-update submodule references" && git push | ||
fi | ||
- name: Git Discussion Update | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
deno task activity | ||
if git diff --quiet; then | ||
echo "-- No changes -- " | ||
else | ||
git commit -am "💬 Auto-update GH Activity" && git push | ||
fi | ||
publish-gh-pages: | ||
uses: ./.github/workflows/gh-pages.yml | ||
secrets: inherit |
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 |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: push vote results | ||
|
||
on: | ||
repository_dispatch: | ||
workflow_dispatch: | ||
|
||
env: | ||
GH_BOT_EMAIL: "41898282+github-actions[bot]@users.noreply.github.com" | ||
GH_BOT_NAME: "GitHub Action" | ||
DENO_DIR: .deno-cache | ||
REPO: commonhaus/commonhaus.github.io | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Setup Deno environment | ||
uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: v1.x | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Cache Deno dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ env.DENO_DIR }} | ||
key: ${{ hashFiles('deno.lock') }} | ||
|
||
- name: Git Config | ||
run: | | ||
git config user.name ${{ env.GH_BOT_NAME }} | ||
git config user.email ${{ env.GH_BOT_EMAIL }} | ||
- name: Git Submodule Update | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
git pull --recurse-submodules | ||
git submodule update --init --remote --recursive | ||
deno task lastmod | ||
if git diff --quiet; then | ||
echo "-- No changes -- " | ||
else | ||
git commit -am "🆙 Auto-update submodule references" && git push | ||
fi | ||
- name: Git Discussion Update | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
deno task activity | ||
if git diff --quiet; then | ||
echo "-- No changes -- " | ||
else | ||
git commit -am "💬 Auto-update GH Activity" && git push | ||
fi | ||
publish-gh-pages: | ||
uses: ./.github/workflows/gh-pages.yml | ||
secrets: inherit |