-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (34 loc) · 1.1 KB
/
release.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
name: Test and publish to package registries after new GitHub release
on:
release:
types: [published]
jobs:
init:
uses: ./.github/workflows/00-init.yml
get-publish-version:
uses: ./.github/workflows/01-get-publish-version.yml
needs: [init]
lint:
uses: ./.github/workflows/01-lint.yml
needs: [init]
# TODO: Reactivate when test works
# test:
# uses: ./.github/workflows/01-test.yml
# needs: [init]
build:
uses: ./.github/workflows/01-build.yml
needs: [init]
deploy:
uses: ./.github/workflows/02-deploy-gh-pages.yml
needs: [lint, build, get-publish-version]
with:
release: ${{ needs.get-publish-version.outputs.release }}
preRelease: ${{ needs.get-publish-version.outputs.preRelease }}
publishpackages:
uses: ./.github/workflows/03-publish-packages.yml
needs: [lint, build, get-publish-version]
secrets: inherit
with:
release: ${{ needs.get-publish-version.outputs.release }}
preRelease: ${{ needs.get-publish-version.outputs.preRelease }}
version: ${{ needs.get-publish-version.outputs.version }}