2020-05-14 22:48:02 +02:00
|
|
|
name: Budibase Release
|
|
|
|
|
2020-05-15 15:39:27 +02:00
|
|
|
on:
|
|
|
|
push:
|
2021-05-20 13:57:29 +02:00
|
|
|
branches:
|
|
|
|
- master
|
2021-05-21 10:11:56 +02:00
|
|
|
|
2020-05-14 22:48:02 +02:00
|
|
|
jobs:
|
2020-05-14 23:27:38 +02:00
|
|
|
release:
|
2021-05-20 13:38:12 +02:00
|
|
|
runs-on: ubuntu-latest
|
2020-05-14 23:27:38 +02:00
|
|
|
|
2020-05-14 22:48:02 +02:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
2021-05-20 13:38:12 +02:00
|
|
|
node-version: 12.x
|
2020-05-14 22:48:02 +02:00
|
|
|
- run: yarn
|
2020-05-18 19:05:36 +02:00
|
|
|
- run: yarn lint
|
2020-05-14 22:48:02 +02:00
|
|
|
- run: yarn bootstrap
|
|
|
|
- run: yarn build
|
2020-07-14 17:00:58 +02:00
|
|
|
env:
|
|
|
|
POSTHOG_TOKEN: ${{ secrets.POSTHOG_TOKEN }}
|
|
|
|
POSTHOG_URL: ${{ secrets.POSTHOG_URL }}
|
|
|
|
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
|
2020-05-18 19:05:36 +02:00
|
|
|
- run: yarn test
|
2020-05-15 17:06:53 +02:00
|
|
|
|
2021-05-20 13:46:49 +02:00
|
|
|
# - name: Publish budibase packages to NPM
|
|
|
|
# env:
|
|
|
|
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
|
|
# run: yarn release
|
2021-01-11 12:24:53 +01:00
|
|
|
|
|
|
|
- name: Build/release Docker images
|
2021-05-20 14:00:07 +02:00
|
|
|
run: |
|
|
|
|
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
|
2021-05-20 14:54:18 +02:00
|
|
|
yarn build
|
2021-05-20 14:00:07 +02:00
|
|
|
yarn build:docker
|
2021-01-11 12:24:53 +01:00
|
|
|
env:
|
|
|
|
DOCKER_USER: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_API_KEY }}
|