budibase/.github/workflows/release.yml

64 lines
1.7 KiB
YAML
Raw Normal View History

name: Budibase Release
2020-05-15 15:39:27 +02:00
on:
push:
2021-05-20 13:57:29 +02:00
branches:
- master
env:
POSTHOG_TOKEN: ${{ secrets.POSTHOG_TOKEN }}
POSTHOG_URL: ${{ secrets.POSTHOG_URL }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
2021-05-21 10:11:56 +02:00
jobs:
2020-05-14 23:27:38 +02:00
release:
2021-05-20 13:38:12 +02:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
2021-05-20 13:38:12 +02:00
node-version: 12.x
- run: yarn
- run: yarn bootstrap
- run: yarn lint
- run: yarn build
2020-05-18 19:05:36 +02:00
- run: yarn test
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-west-1
2021-05-26 16:08:57 +02:00
- name: Publish budibase packages to NPM
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2021-05-26 16:52:31 +02:00
run: |
# setup the username and email. I tend to use 'GitHub Actions Bot' with no email by default
git config user.name "Budibase Release Bot"
git config user.email "<>"
echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} >> .npmrc
2021-05-26 16:52:31 +02:00
yarn release
- 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
env:
DOCKER_USER: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_API_KEY }}
2021-08-16 22:47:08 +02:00
- uses: azure/setup-helm@v1
id: install
- run: yarn release:helm
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.1.0
with:
charts_dir: docs
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"