-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 1.35 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
name: Release workflow
on:
push:
branches:
- main
jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Create mocked .env.local with required variables
run: |
echo MONGODB_URI=mongodb://mongo > .env.local
echo MONGODB_DB=mongodb >> .env.local
echo ENCRYPTION_KEY=encryption_key >> .env.local
- uses: oven-sh/setup-bun@v1
with:
bun-version: 1
- run: bun install
- run: bun run build
- run: bun run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
generate-docs:
name: generate docs
runs-on: ubuntu-latest
needs: release
steps:
- uses: actions/checkout@v3
- name: Generate docs
uses: eutiveumsonho/jsdoc-builder-action@main
env:
API_TOKEN_GITHUB: ${{ secrets.DOCS_GEN_GH_TOKEN }}
with:
jsdoc-input-files: "./components/ ./containers/ ./lib/ ./app/ ./test-server.js ./package.json"
destination-github-username: "eutiveumsonho"
destination-repository-name: "docs"
user-name: marcelovicentegc
user-email: [email protected]
target-branch: main
commit-message: "docs: update docs ORIGIN_COMMIT"