-
Notifications
You must be signed in to change notification settings - Fork 3
74 lines (63 loc) · 2.18 KB
/
publish.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
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
74
name: Publish Instagram Integration
on:
push:
tags:
- 'v*'
pull_request:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-node@v3
with:
node-version: 20
- name: install
run: |
git config --global url."https://${{ secrets.PAT_USER }}:${{ secrets.PAT }}@github.com/".insteadOf "https://github.com/"
- uses: oven-sh/setup-bun@v1
- uses: TextsHQ/[email protected]
name: "Publish Instagram Integration"
id: publishInstagram
with:
s3-access-key-id: ${{ secrets.S3_ACCESS_KEY_ID }}
s3-access-key: ${{ secrets.S3_ACCESS_KEY }}
s3-endpoint: https://uploads.texts.com
entrypoint: ./dist/platform-instagram/index.js
prebuild: |
yarn build
postbuild: |
cp -r binaries/ _ncc/binaries/
- uses: thollander/actions-comment-pull-request@v2
if: github.event_name == 'pull_request'
with:
comment_tag: manifest-instagram
message: ${{ steps.publishInstagram.outputs.summary }}
- name: Results (Instagram)
run: |
echo "${{ steps.publishInstagram.outputs.summary }}"
- uses: TextsHQ/[email protected]
name: "Publish Messenger Integration"
id: publishMessenger
with:
s3-access-key-id: ${{ secrets.S3_ACCESS_KEY_ID }}
s3-access-key: ${{ secrets.S3_ACCESS_KEY }}
s3-endpoint: https://uploads.texts.com
entrypoint: ./dist/platform-messenger/index.js
prebuild: |
yarn build
postbuild: |
cp -r binaries/ _ncc/binaries/
- uses: thollander/actions-comment-pull-request@v2
if: github.event_name == 'pull_request'
with:
comment_tag: manifest-messenger
message: ${{ steps.publishMessenger.outputs.summary }}
- name: Results (Messenger)
run: |
echo "${{ steps.publishMessenger.outputs.summary }}"