Skip to content

Merge pull request #998 from EscolaLMS/feat/SUD-277 #674

Merge pull request #998 from EscolaLMS/feat/SUD-277

Merge pull request #998 from EscolaLMS/feat/SUD-277 #674

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- master
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
env:
CI: false
BASE_PATH: /
REACT_APP_PUBLIC_URL: https://admin-stage.escolalms.com/
REACT_APP_API_URL: https://api-stage.escolalms.com
REACT_APP_SENTRYDSN: https://[email protected]/63
REACT_APP_YBUG: 01m1nn5zqystt1qq5n11
REACT_APP_SENTRY_RELEASE: admin-${{github.ref_name}}
run: |
node -v
yarn
yarn build
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: dist # The folder the action should deploy.
- name: Create Sentry release
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: sentry
SENTRY_PROJECT: wellms-all
SENTRY_URL: https://sentry.etd24.pl/
with:
environment: staging
sourcemaps: ./dist
version: admin-${{github.ref_name}}
ignore_missing: true
ignore_empty: true
- name: Create the Mattermost Message
run: |
echo "{\"text\":\"There is a [admin-stage.escolalms.com](https://admin-stage.escolalms.com/) available\"}" > mattermost.json
- uses: mattermost/action-mattermost-notify@master
env:
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}