@@ -39,45 +39,14 @@ jobs:
3939 restore-keys : |
4040 ${{ runner.os }}-${{ matrix.node-version }}-nodemodules-
4141
42- - name : Build plugin
43- run : yarn build
42+ - name : Pull dependencies
43+ run : yarn
4444
4545 - name : Sign plugin
46- run : |
47- # We only have a single dependency, grafana-toolkit
48- # So we install next to where it's needed
49- yarn
50- yarn sign
46+ run : yarn sign
5147 env :
5248 GRAFANA_API_KEY : ${{ secrets.GRAFANA_API_KEY }} # Requires a Grafana API key from Grafana.com.
5349
54- # We reuse the same tests from the other repo, after all, why not?
55- # TODO: run other tests that are valid here
56- # eg: checking README etc
57- - name : Run grafana server
58- run : docker-compose -f pyroscope/grafana-plugin/datasource/docker-compose.yml up -d
59- - name : Run tests
60- run : yarn --cwd pyroscope cy:datasource:ci
61- env :
62- CYPRESS_VIDEO : true
63- CYPRESS_COMPARE_SNAPSHOTS : true
64- - uses : actions/upload-artifact@v2
65- if : always()
66- with :
67- name : cypress-screenshots
68- path : pyroscope/cypress/screenshots
69- - uses : actions/upload-artifact@v2
70- if : always()
71- with :
72- name : cypress-videos
73- path : pyroscope/cypress/videos
74- - uses : actions/upload-artifact@v2
75- if : always()
76- with :
77- name : cypress-snapshots
78- # TODO: scope to only store screenshots that refer to grafana
79- path : pyroscope/cypress/snapshots
80-
8150 # Setup the go environment, since the grafana plugin linter isn't distributed as a binary
8251 - name : Setup Go environment
8352 if : steps.check-for-backend.outputs.has-backend == 'true'
13099 - name : Read changelog
131100 id : changelog
132101 run : |
133- awk '/^## / {s++} s == 1 {print}' CHANGELOG.md > release_notes.md
102+ awk '/^## / {s++} s == 1 {print}' ${{ steps.metadata.outputs.plugin-id }}/ CHANGELOG.md > release_notes.md
134103 echo "::set-output name=path::release_notes.md"
135104
136105 - name : Create tag
@@ -153,7 +122,7 @@ jobs:
153122 tag_name : ' v${{ steps.metadata.outputs.plugin-version }}'
154123 release_name : Release ${{ steps.metadata.outputs.plugin-version }}
155124 body_path : ${{ steps.changelog.outputs.path }}
156- draft : true
125+ draft : false
157126
158127 - name : Add plugin to release
159128 id : upload-plugin-asset
@@ -179,5 +148,5 @@ jobs:
179148
180149 - name : Publish to Grafana.com
181150 run : |
182- echo "A draft release has been created for your plugin. Please review and publish it."
151+ echo "A release has been created for your plugin. Please review and publish it."
183152 echo "To publish a new version, follow https://github.com/grafana/grafana-plugin-repository#maintain-your-plugin"
0 commit comments