Skip to content

Commit 8a78f80

Browse files
wip: Publish CI
1 parent 78b1356 commit 8a78f80

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/publish.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build and release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
name: Build and Push
12+
steps:
13+
- name: checkout repo
14+
uses: actions/checkout@v4
15+
- name: setup beam
16+
uses: erlef/setup-beam@v1
17+
with:
18+
otp-version: "27.1.2"
19+
gleam-version: "1.7.0"
20+
elixir-version: "1.18.0"
21+
rebar3-version: "3"
22+
- name: setup node
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: 20
26+
cache: "npm"
27+
cache-dependency-path: package-lock.json
28+
- name: install js dependencies
29+
run: npm ci
30+
- name: build
31+
run: |
32+
gleam run -m build
33+
npx tailwindcss -i ./static/main.css -o ./priv/style.css
34+
echo "gearsco.de" > ./priv/CNAME
35+
- name: push to site branch
36+
uses: s0/git-publish-subdir-action@develop
37+
env:
38+
REPO: self
39+
BRANCH: pages
40+
FOLDER: priv
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
MESSAGE: "{msg}"

0 commit comments

Comments
 (0)