-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (35 loc) · 864 Bytes
/
publish.yml
File metadata and controls
39 lines (35 loc) · 864 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
name: Publish
on:
push:
branches:
- main
- develop
- 'feature/**'
permissions:
id-token: write
contents: write
pull-requests: write
env:
AWS_REGION: eu-west-2
AWS_ACCOUNT_ID: "094954420758"
jobs:
build:
if: github.run_number != 1
name: CDP-build-workflow
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Build and Publish
uses: DEFRA/cdp-build-action/build@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
## SonarCloud
## Uncomment to unable SonarCloud scan
## Requires project to be set up in SonarCloud
## and the SonarCloud token to be set in the repository secrets
# sonarcloud-scan:
# name: CDP SonarCloud Scan
# uses: ./.github/workflows/sonarcloud.yml
# needs: build
# secrets: inherit