diff --git a/.github/workflows/tags.yml b/.github/workflows/tags.yml index 33b9792..93a7045 100644 --- a/.github/workflows/tags.yml +++ b/.github/workflows/tags.yml @@ -7,27 +7,8 @@ on: - 'v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+' jobs: - build-plugin-backend: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version: 1.19 - - name: Install go dependencies - run: make install-go-dependencies - - name: build all versions - run: make build-backend-all - - name: Upload linux binaries - uses: actions/upload-artifact@v3 - with: - name: plugin-executables - path: ./dist/ create-artifacts: runs-on: ubuntu-latest - needs: - - build-plugin-backend steps: - uses: actions/checkout@v3 - name: Get metadata about the plugin @@ -53,22 +34,21 @@ jobs: cache: npm - name: Install dependencies run: npm ci - - name: Download plugin backend - uses: actions/download-artifact@v3 - with: - name: plugin-executables - path: ./dist/ - name: Build frontend run: | make build-frontend - - name: package-and-zip - env: - GRAFANA_API_KEY: ${{ secrets.GRAFANA_API_KEY }} - run: make package-and-zip PLUGIN_VERSION=${{ steps.metadata.outputs.version }} - name: Set up Go uses: actions/setup-go@v4 with: go-version: 1.19 + - name: Install go dependencies + run: make install-go-dependencies + - name: build all versions + run: make build-backend-all + - name: package-and-zip + env: + GRAFANA_API_KEY: ${{ secrets.GRAFANA_API_KEY }} + run: make package-and-zip PLUGIN_VERSION=${{ steps.metadata.outputs.version }} - name: Lint plugin # the rc part of the version is rejected by the plugin validator if: ${{ !steps.check_prerelease.outputs.is_prerelease }}