chore(actions): enable build from branch
This commit is contained in:
parent
d68ac74731
commit
06eeabe494
5 changed files with 98 additions and 0 deletions
1
.github/workflows/api-ee.yaml
vendored
1
.github/workflows/api-ee.yaml
vendored
|
|
@ -1,5 +1,6 @@
|
|||
# This action will push the chalice changes to aws
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
|
|
|
|||
94
.github/workflows/frontend-tag.yaml
vendored
Normal file
94
.github/workflows/frontend-tag.yaml
vendored
Normal file
|
|
@ -0,0 +1,94 @@
|
|||
name: Release frontend
|
||||
|
||||
on:
|
||||
release:
|
||||
types:
|
||||
- created
|
||||
- released
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version:
|
||||
- 14.x
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Release
|
||||
uses: actions/create-release@v1
|
||||
id: create_release
|
||||
with:
|
||||
draft: false
|
||||
prerelease: false
|
||||
release_name: ${{ steps.version.outputs.version }}
|
||||
tag_name: ${{ github.ref }}
|
||||
body_path: CHANGELOG.md
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
- name: Upload frontend
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: ./bin/azblogfilter.darwin-amd64.tar.gz
|
||||
asset_name: azblogfilter.darwin-amd64.tar.gz
|
||||
asset_content_type: application/gzip
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v2
|
||||
with:name: release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
build_release:
|
||||
name: build_release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Creating frontend artifacts
|
||||
run: |
|
||||
cd frontend
|
||||
npm install && npm run build:oss
|
||||
cp -rf public frontend
|
||||
zip -r9 ../frontend.zip frontend
|
||||
- name: release
|
||||
uses: actions/create-release@v1
|
||||
id: create_release
|
||||
with:
|
||||
draft: false
|
||||
prerelease: false
|
||||
release_name: ${{ steps.version.outputs.version }}
|
||||
tag_name: ${{ github.ref }}
|
||||
body_path: CHANGELOG.md
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
- name: upload linux artifact
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: ./bin/azblogfilter.linux-amd64.tar.gz
|
||||
asset_name: azblogfilter.linux-amd64.tar.gz
|
||||
asset_content_type: application/gzip
|
||||
- name: upload frontend artifact
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: ./frontend.zip
|
||||
asset_name: frontend.zip
|
||||
asset_content_type: application/gzip
|
||||
1
.github/workflows/utilities.yaml
vendored
1
.github/workflows/utilities.yaml
vendored
|
|
@ -1,5 +1,6 @@
|
|||
# This action will push the utilities changes to aws
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
|
|
|
|||
1
.github/workflows/workers-ee.yaml
vendored
1
.github/workflows/workers-ee.yaml
vendored
|
|
@ -1,6 +1,7 @@
|
|||
# Ref: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
|
|
|
|||
1
.github/workflows/workers.yaml
vendored
1
.github/workflows/workers.yaml
vendored
|
|
@ -1,6 +1,7 @@
|
|||
# Ref: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue