-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (38 loc) · 1 KB
/
main.yml
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
name: main
on:
push:
branches:
- main
jobs:
check-for-ci-image-changes:
runs-on: ubuntu-latest
outputs:
need-to-build-image: ${{ steps.filter.outputs.dockerfile-changed }}
steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
dockerfile-changed:
- 'docker/Dockerfile'
create-ci-image:
name: "Create CI Image"
needs: check-for-ci-image-changes
if: needs.check-for-ci-image-changes.outputs.need-to-build-image == 'true'
uses: ./.github/workflows/ci-image.yml
tag-pre-release:
name: "Tag Pre-Release"
runs-on: "ubuntu-latest"
needs: create-ci-image
if: ${{ always() }}
container: "ghcr.io/${{ github.repository }}/ci:latest"
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 14
cache: 'npm'
- name: Build website & ebooks
run: make all