-
Notifications
You must be signed in to change notification settings - Fork 11
42 lines (38 loc) · 1.39 KB
/
v2-main-workflow.yaml
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: Main workflow
on:
push:
branches:
- main
jobs:
tests-and-lints:
uses: ./.github/workflows/tests-and-lints-template.yaml
secrets:
eth_rpc_url: ${{ secrets.ETH_RPC_URL }}
app_id: ${{ secrets.APP_ID }}
app_private_key: ${{ secrets.APP_PRIVATE_KEY }}
check-release:
uses: propeller-heads/ci-cd-templates/.github/workflows/release-v2.yaml@main
with:
args: --dry-run --no-ci
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
secrets:
app_id: ${{ secrets.APP_ID }}
app_private_key: ${{ secrets.APP_PRIVATE_KEY }}
release:
needs:
- tests-and-lints
- check-release
if: needs.check-release.outputs.verify_release_version != ''
uses: propeller-heads/ci-cd-templates/.github/workflows/release-v2.yaml@main
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
secrets:
app_id: ${{ secrets.APP_ID }}
app_private_key: ${{ secrets.APP_PRIVATE_KEY }}