-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 868 Bytes
/
Copy pathcicd.yml
File metadata and controls
42 lines (38 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: CI / CD
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Docker Build
run: |
set -euo pipefail
./scripts/docker-build.sh --extract-dist 2>&1
git rev-parse HEAD > dist/commit.txt
date >> dist/commit.txt
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: dist
path: ./dist
deploy:
needs: [build]
runs-on: ubuntu-latest
steps:
-
name: Download artifact
uses: actions/download-artifact@v3
with:
name: dist
path: ./dist
- name: Serve
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist