docs: db writes and reads, containers and hooks #33
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |