Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into feature/import-ex…
Browse files Browse the repository at this point in the history
…periment
  • Loading branch information
SavvasJaydipHirapara committed Oct 26, 2020
2 parents a3abf3c + dad8150 commit ef17e11
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 22 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/build-and-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: 'Build and Deploy'
on:
push:
branches:
- 'master'
paths-ignore:
- projects/server/**
- terraform/**
jobs:
bump-version:
name: 'Build and Deploy'
runs-on: ubuntu-latest
steps:
- uses: 'actions/checkout@v2'
with:
fetch-depth: 0
- uses: actions/setup-node@v1
with:
node-version: 12.x
- uses: phips28/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npm ci
- run: npm run build:prod
- run: zip -r upgrade-client-v${{ steps.package-version.outputs.current-version}}.zip *
working-directory: dist/abtesting
- run: mv dist/abtesting/upgrade-client-v${{ steps.package-version.outputs.current-version}}.zip .
- name: Generate Release Changelog
uses: Bullrich/[email protected]
id: changelog
env:
REPO: ${{ github.repository }}
- name: Generate Slack Changelog
run: |
echo 'CHANGELOG<<EOF' >> $GITHUB_ENV
git log --color=never --pretty='tformat:%xe2%x80%xa2 `%h` %s (%an)' ${{github.event.before}}..HEAD >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- uses: martinbeentjes/[email protected]
id: package-version
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: upgrade-client-v${{ steps.package-version.outputs.current-version}}.zip
tag: v${{ steps.package-version.outputs.current-version}}
name: Upgrade Client ${{ steps.package-version.outputs.current-version}}
body: ${{ steps.changelog.outputs.changelog }}
commit: master
token: ${{ secrets.GITHUB_TOKEN }}
- uses: reggionick/[email protected]
env:
aws_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
with:
bucket: ${{ secrets.S3_BUCKET }}
bucket-region: ${{ secrets.AWS_REGION }}
folder: dist/abtesting/
dist-id: ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }}
invalidation: /index.html
20 changes: 0 additions & 20 deletions .github/workflows/version.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ab-testing",
"version": "1.0.5",
"version": "1.0.8",
"license": "MIT",
"scripts": {
"ng": "ng",
Expand Down

0 comments on commit ef17e11

Please sign in to comment.