-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (46 loc) · 1.65 KB
/
release-please.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
name: glowsite-release
on:
push:
branches:
- main
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
version: v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }}
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
package-name: glowsite
changelog-types: '[ { "type": "feat", "section": "Feature" }, { "type": "fix", "section": "Bug Fix" }, { "type": "docs", "section": "Documentation" }, { "type": "enh", "section": "Enhancement" }, { "type": "chore", "section": "Chore" } ]'
publish-www:
needs: release-please
if: ${{ needs.release-please.outputs.release_created }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: pnpm/[email protected]
with:
version: 6
- uses: actions/setup-node@v3
with:
node-version: 16
cache: pnpm
- name: Install packages
run: pnpm install
- name: Build site
run: pnpm run build:www
env:
NODE_OPTIONS: "--max_old_space_size=4096"
VITE_GLOWBUZZER_VERSION: ${{ needs.release-please.outputs.version }}
- name: Generate index
run: node post-process-site.mjs www.glowbuzzer.com
- name: Deploy site
run: ./deploy-site.sh www www.glowbuzzer.com EOLCC9H61HP6F