generated from TextsHQ/platform-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (38 loc) · 1.13 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
name: Publish 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: TextsHQ/[email protected]
id: publish
with:
s3-access-key-id: ${{ secrets.S3_ACCESS_KEY_ID }}
s3-access-key: ${{ secrets.S3_ACCESS_KEY }}
s3-endpoint: https://uploads.texts.com
prebuild: |
yarn build
- uses: thollander/actions-comment-pull-request@v2
if: github.event_name == 'pull_request'
with:
comment_tag: manifest
message: ${{ steps.publish.outputs.summary }}
- name: Results
run: |
echo "${{ steps.publish.outputs.summary }}"