Skip to content

Commit 3ce5c7a

Browse files
committed
add circleci config
1 parent f83f169 commit 3ce5c7a

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.circleci/config.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
version: 2.1
2+
3+
orbs:
4+
aws-cli: circleci/[email protected]
5+
6+
executors:
7+
default:
8+
docker:
9+
- image: cimg/node:18.7.0
10+
11+
jobs:
12+
build_release:
13+
executor: default
14+
steps:
15+
- checkout
16+
- run:
17+
name: setup
18+
command: |
19+
wget https://github.com/barnumbirr/zola-debian/releases/download/v0.16.0-1/zola_0.16.0-1_amd64_bullseye.deb
20+
sudo dpkg -i zola_0.16.0-1_amd64_bullseye.deb
21+
- aws-cli/setup:
22+
profile-name: default
23+
- run:
24+
name: build
25+
command: |
26+
yarn install
27+
yarn build
28+
- run:
29+
name: push to s3
30+
command: |
31+
aws s3 cp public s3://iroh.computer/ --recursive
32+
33+
workflows:
34+
version: 2.1
35+
36+
n0-website:
37+
jobs:
38+
- build_release:
39+
name: "build and push release"
40+
context: aws_s3
41+
filters:
42+
branches:
43+
only: main

0 commit comments

Comments
 (0)