diff --git a/.github/workflows/frontend-tag.yaml b/.github/workflows/frontend-tag.yaml deleted file mode 100644 index 776301fb7..000000000 --- a/.github/workflows/frontend-tag.yaml +++ /dev/null @@ -1,94 +0,0 @@ -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