Skip to content

CNAME

CNAME #17

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- name: Install Elm
run: |
curl -L -o elm.gz https://github.com/elm/compiler/releases/download/0.19.1/binary-for-linux-64-bit.gz
gunzip elm.gz
chmod +x elm
sudo mv elm /usr/local/bin
- name: Build Project
run: elm make src/Main.elm --output=index.js
- name: Move file to the ./public folder
run: mkdir public && mv index.html public/index.html && mv index.js public/index.js
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
user_name: ethanppl
user_email: [email protected]
cname: cong1kit3.ethanppl.com