Skip to content

Commit 67d0462

Browse files
committed
ci(github-actions): move all files, add yaml, and prep for github actions build
Had to move all the site files out of the site directory for the build to be cleaner. Removed old files in prep for build. Signed-off-by: Laura Santamaria <[email protected]>
1 parent 37901d1 commit 67d0462

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+1931
-20
lines changed

.github/workflows/build.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Build site
2+
3+
on:
4+
push:
5+
branches: [ "dev" ]
6+
pull_request:
7+
types:
8+
- opened
9+
- reopened
10+
- synchronize
11+
- closed
12+
13+
concurrency: preview-${{ github.ref }}
14+
15+
env:
16+
CARGO_TERM_COLOR: always
17+
18+
jobs:
19+
build_and_deploy:
20+
runs-on: ubuntu-latest
21+
if: github.ref == 'refs/heads/dev'
22+
steps:
23+
- name: Check out repository
24+
uses: actions/checkout@v4
25+
- name: Build and deploy
26+
uses: shalzz/[email protected]
27+
env:
28+
PAGES_BRANCH: gh-pages
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
preview:
31+
runs-on: ubuntu-latest
32+
if: github.ref != 'refs/heads/dev'
33+
steps:
34+
- name: Checkout
35+
uses: actions/checkout@v4
36+
- name: Install and build
37+
if: github.event.action != 'closed'
38+
uses: shalzz/[email protected]
39+
env:
40+
BUILD_ONLY: true
41+
BUILD_FLAGS: --drafts
42+
BUILD_THEMES: false
43+
CHECK_LINKS: true

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
site/public/
2-
.idea
2+
.idea
3+
4+
.DS_Store
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)