fix(api-playwright): move to uuid random generation #52
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: Continuous deployment | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main] | |
jobs: | |
api_documentation_bump: | |
name: Deploy API documentation (Bump) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Deploy API documentation | |
uses: bump-sh/github-action@v1 | |
with: | |
doc: conduit | |
token: ${{secrets.BUMP_TOKEN}} | |
file: api/openapi.yml | |
deploy_live_demo: | |
name: Deploy Live (Demo) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v3 | |
id: setup-node | |
with: | |
node-version: '16' | |
- name: Get node version | |
id: node | |
run: | | |
echo "::set-output name=version::$(node -v)" | |
- name: Get node_modules cache | |
uses: actions/cache@v3 | |
id: cache | |
with: | |
path: | | |
**/node_modules | |
# Adding node version as cache key | |
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}-${{ steps.node.outputs.version }} | |
- name: Install dependencies | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: npm ci --no-audit --prefer-offline --progress=false | |
- run: npx nx build demo | |
- name: Deploy to Netlify | |
uses: nwtgck/actions-netlify@v2 | |
with: | |
publish-dir: './dist/apps/demo' | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
production-deploy: true | |
env: | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
NETLIFY_SITE_ID: ${{ secrets.DEMO_NETLIFY_ID }} |