-
Notifications
You must be signed in to change notification settings - Fork 19
99 lines (86 loc) · 2.48 KB
/
on-master-push.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: Master Push
on:
push:
branches:
- master
jobs:
create-and-deploy-compodoc:
runs-on: ubuntu-latest
steps:
- name: Checkout repository files
uses: actions/checkout@v4
- name: Install dependencies
run: npm install @compodoc/compodoc
- name: Run compodoc
run: npm run compodoc
- name: Deploy on pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: doc/compodoc
destination_dir: documentation
force_orphan: true
test:
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm64
os:
- ubuntu-latest
- [ self-hosted, Linux, ARM64 ]
exclude:
- platform: linux/arm64
os: ubuntu-latest
- platform: linux/amd64
os: [ self-hosted, Linux, ARM64 ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository files
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Run tests in Docker image
uses: docker/build-push-action@v6
with:
platforms: ${{ matrix.platform }}
context: ./
file: ./build/Dockerfile
builder: ${{ steps.buildx.outputs.name }}
target: test
- name: Run tests with timezone
if: ${{ matrix.platform == 'linux/amd64' }}
uses: docker/build-push-action@v6
with:
platforms: ${{ matrix.platform }}
context: ./
file: ./build/Dockerfile
builder: ${{ steps.buildx.outputs.name }}
target: test
build-args: |
TZ=America/Detroit
pre-release:
runs-on: ubuntu-latest
needs:
- test
steps:
- name: Checkout repository files
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up node
uses: actions/setup-node@v4
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
with:
extra_plugins: |
@semantic-release/git
@semantic-release/github
semantic-release-slack-bot