Skip to content

Parse and Deploy (Ubuntu) #60

Parse and Deploy (Ubuntu)

Parse and Deploy (Ubuntu) #60

Workflow file for this run

name: Parse and Deploy (Ubuntu)
on:
workflow_dispatch:
schedule:
- cron: "10 6 * * *"
jobs:
parse-and-deploy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up Gleam
uses: erlef/setup-beam@v1
with:
otp-version: "27.0.1"
gleam-version: "1.6.0-rc1"
rebar3-version: "3.22.1"
- 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