Skip to content

try to fix jira sso bs #64

try to fix jira sso bs

try to fix jira sso bs #64

Workflow file for this run

name: Deploy
on:
push:
branches: [ develop, main ]
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install Dependencies
run: yarn install --immutable
- name: Build Project
run: yarn build
- name: Prepare artifact
run: |
tar -czf fr-api.tar.gz \
.yarn/releases \
dist \
migrations \
static \
tools \
views \
.nvmrc \
.sequelizerc \
.yarnrc.yml \
build.json \
database_example.json \
LICENSE.md \
localisations.json \
package.json \
permissions.json \
README.md \
yarn.lock
- name: Publish artifact
uses: actions/upload-artifact@v3
with:
name: fr-api
path: fr-api.tar.gz
deploy:
name: Deploy
runs-on: ubuntu-latest
needs: publish
env:
NODE_ENV: production
steps:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: fr-api
- name: Extract artifact
run: |
tar -xzf fr-api.tar.gz
rm fr-api.tar.gz
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.FR_SSH_KEY }}
known_hosts: ${{ secrets.FR_KNOWN_HOSTS }}
- name: Deploy
run: sh ./tools/deploy.sh