-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.11 KB
/
self-hosted.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
name: Parse and Deploy (Selfhosted)
on:
workflow_dispatch:
jobs:
parse-and-deploy:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Install asdf & tools
uses: asdf-vm/actions/install@v3
- name: Setup Chrome
uses: browser-actions/setup-chrome@v1
id: setup-chrome
- name: Download dependencies
run: gleam deps download
- name: Parse
uses: nick-fields/[email protected]
with:
max_attempts: 5
retry_wait_seconds: 15
timeout_minutes: 2
command: gleam run
env:
CHROBOT_BROWSER_PATH: ${{ steps.setup-chrome.outputs.chrome-path }}
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./priv/static
publish_branch: gh-pages
force_orphan: true
user_name: "github-actions[bot]"
user_email: "github-actions[bot]@users.noreply.github.com"
commit_message: "Update from GitHub Actions"
cname: eczaneleri.guria.dev