-
Notifications
You must be signed in to change notification settings - Fork 4
73 lines (61 loc) · 2.03 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Release
on:
release:
types: [published]
push:
branches: GO-165_create-release-workflow
env:
VERSION: GO-165 # ${{ github.event.release.tag_name }}
WORKDIR: release
GITHUB_TOKEN: ${{ secrets.SYSADMIN_GEOCODING_CONTROL_CREDENTIALS }}
jobs:
clone-cdn:
name: Git clone CDN repository
runs-on: [ self-hosted, fernando ]
defaults:
run:
working-directory: ${{ env.WORKDIR }}
steps:
- name: Checkout CDN repo
uses: actions/checkout@main
with:
path: ${{ env.WORKDIR }}/cdn.maptiler.com
repository: maptiler/cdn.maptiler.com
token: ${{ secrets.SYSADMIN_GEOCODING_CONTROL_CREDENTIALS }}
release:
name: Build and release CDN
runs-on: [ self-hosted, fernando ]
needs: clone-cdn
defaults:
run:
working-directory: ${{ env.WORKDIR }}/maptiler-geocoding-control
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
path: ${{ env.WORKDIR }}/maptiler-geocoding-control
- name: Check out my other private repo
uses: actions/checkout@main
with:
path: ${{ env.WORKDIR }}/cdn.maptiler.com
repository: maptiler/cdn.maptiler.com
token: ${{ secrets.SYSADMIN_GEOCODING_CONTROL_CREDENTIALS }}
- name: Install npm
run: npm i
- name: Create pull request
run: npm run cdn-pr
# - name: Approve pull request
# uses: juliangruber/approve-pull-request-action@v2
# with:
# github-token: ${{ secrets.SYSADMIN_GEOCODING_CONTROL_CREDENTIALS }}
# number: ${{ env.PULL_REQUEST }}
# repo: juliangruber/approve-pull-request-action
# - name: Merge pull request
# uses: juliangruber/merge-pull-request-action@v1
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# number: ${{ env.PULL_REQUEST_NUMBER }}
# method: squash # merge rebase
# repo: juliangruber/octokit-action
# - name: Publish to CDN
# run: npm run pub