-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (55 loc) · 1.56 KB
/
update-profile-readme.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Update Profile README
on:
push:
# Run on main branch pushes or PRs
branches: [main]
pull_request:
branches: [main]
# Allow to manually trigger the workflow
workflow_dispatch:
schedule:
# Rebuild every day at 16:30 PM UTC
- cron: "30 16 * * *"
jobs:
build:
# What OS to use
runs-on: ubuntu-latest
# Allow commits to the repository
permissions:
id-token: write
contents: write
pages: write
# What steps to run
steps:
- name: Clone repository
# Git clone the repository
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: '0' # Fetch all history for git
- name: Setup Deno environment
# Downloads deno and caches it
uses: denoland/setup-deno@v2
with:
# Latest Deno 2.x version
deno-version: v2.x
- name: Build site
# Run the build script from deno.json
env:
API_KEY_01: ${{ secrets.API_KEY_01 }}
run: deno task build
- name: Commit changes
# Commit the changes to the repository
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Apply changes during gh actions build
status_options: "--untracked-files=no"
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "_site"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4