diff --git a/.github/workflows/api-ee.yaml b/.github/workflows/api-ee.yaml index 2c7f404e8..7c48fc7d9 100644 --- a/.github/workflows/api-ee.yaml +++ b/.github/workflows/api-ee.yaml @@ -1,5 +1,6 @@ # This action will push the chalice changes to aws on: + workflow_dispatch: push: branches: - dev diff --git a/.github/workflows/frontend-tag.yaml b/.github/workflows/frontend-tag.yaml new file mode 100644 index 000000000..776301fb7 --- /dev/null +++ b/.github/workflows/frontend-tag.yaml @@ -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 diff --git a/.github/workflows/utilities.yaml b/.github/workflows/utilities.yaml index 603c09126..45e238d20 100644 --- a/.github/workflows/utilities.yaml +++ b/.github/workflows/utilities.yaml @@ -1,5 +1,6 @@ # This action will push the utilities changes to aws on: + workflow_dispatch: push: branches: - dev diff --git a/.github/workflows/workers-ee.yaml b/.github/workflows/workers-ee.yaml index 52570c112..170f0761a 100644 --- a/.github/workflows/workers-ee.yaml +++ b/.github/workflows/workers-ee.yaml @@ -1,6 +1,7 @@ # Ref: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions on: + workflow_dispatch: push: branches: - dev diff --git a/.github/workflows/workers.yaml b/.github/workflows/workers.yaml index 5a43446af..f9ac362a4 100644 --- a/.github/workflows/workers.yaml +++ b/.github/workflows/workers.yaml @@ -1,6 +1,7 @@ # Ref: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions on: + workflow_dispatch: push: branches: - dev