Skip to content

Commit 7432980

Browse files
committed
Commit
1 parent fb14251 commit 7432980

File tree

2 files changed

+61
-10
lines changed

2 files changed

+61
-10
lines changed

.github/workflows/deploy.yml

Lines changed: 59 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,68 @@
1-
name: Deploy
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
7+
name: Deploy Jekyll site to Pages
28

39
on:
10+
# Runs on pushes targeting the default branch
411
push:
5-
branches:
6-
- master
12+
branches: ["master"]
13+
14+
# Allows you to run this workflow manually from the Actions tab
15+
workflow_dispatch:
16+
17+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
18+
permissions:
19+
contents: read
20+
pages: write
21+
id-token: write
22+
23+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
24+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
25+
concurrency:
26+
group: "pages"
27+
cancel-in-progress: false
728

829
jobs:
9-
deploy:
30+
# Build job
31+
build:
1032
runs-on: ubuntu-latest
11-
name: Deploy
1233
steps:
13-
- uses: actions/checkout@v2
14-
- uses: helaili/[email protected]
34+
- name: Checkout
35+
uses: actions/checkout@v4
36+
with:
37+
fetch-depth: 0
38+
- name: Setup Ruby
39+
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0
40+
with:
41+
ruby-version: '3.1' # Not needed with a .ruby-version file
42+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
43+
cache-version: 0 # Increment this number if you need to re-download cached gems
1544
env:
1645
BUNDLE_GITHUB__COM: x-access-token:${{ secrets.GH_REPO_PAT }}
17-
with:
18-
token: ${{ secrets.GH_REPO_PAT }}
19-
target_branch: gh-pages
46+
- name: Setup Pages
47+
id: pages
48+
uses: actions/configure-pages@v5
49+
- name: Build with Jekyll
50+
# Outputs to the './_site' directory by default
51+
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
52+
env:
53+
JEKYLL_ENV: production
54+
- name: Upload artifact
55+
# Automatically uploads an artifact from the './_site' directory by default
56+
uses: actions/upload-pages-artifact@v3
57+
58+
# Deployment job
59+
deploy:
60+
environment:
61+
name: github-pages
62+
url: ${{ steps.deployment.outputs.page_url }}
63+
runs-on: ubuntu-latest
64+
needs: build
65+
steps:
66+
- name: Deploy to GitHub Pages
67+
id: deployment
68+
uses: actions/deploy-pages@v4

_includes/my-head.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
<script defer data-domain="workers.tools" src="https://plausible.io/js/plausible.js"></script>
2+
<script>(function () { window.counterscale = { q: [["set", "siteId", "workers.tools"], ["trackPageview"]] } })()</script>
3+
<script id="counterscale-script" src="https://counterscale-bio.pages.dev/tracker.js" defer></script>

0 commit comments

Comments
 (0)