-
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (52 loc) · 1.58 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Release
on:
push:
branches:
- main
permissions: read-all
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- name: Action
uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.ACTION_WORKFLOWS }}
release-type: simple
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
- name: Deploy infrastructure
if: ${{ steps.release.outputs.release_created }}
uses: actions/github-script@v7
with:
result-encoding: json
github-token: ${{ secrets.ACTION_WORKFLOWS }}
retries: 3
script: |
const owner = 'italia-opensource';
const repo = 'italiaopensource.com';
const event_type = 'deploy-infrastructure';
const ref = 'main';
github.rest.repos.createDispatchEvent({
owner,
repo,
event_type
});
- name: Deploy Website
if: ${{ steps.release.outputs.release_created }}
uses: actions/github-script@v7
with:
result-encoding: json
github-token: ${{ secrets.ACTION_WORKFLOWS }}
retries: 3
script: |
const owner = 'italia-opensource';
const repo = 'italiaopensource.com';
const event_type = 'deploy-website';
const ref = 'main';
github.rest.repos.createDispatchEvent({
owner,
repo,
event_type
});