Skip to content

Commit a1dbae3

Browse files
authored
Update release file (#2)
* update release file
1 parent bf3bc8b commit a1dbae3

4 files changed

Lines changed: 16 additions & 16 deletions

File tree

.github/workflows/release.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
release:
1010
runs-on: ubuntu-latest
1111
env:
12-
GRAFANA_API_KEY: $\{{ secrets.GRAFANA_API_KEY }} # Requires a Grafana API key from Grafana.com.
12+
GRAFANA_API_KEY: ${{ secrets.GRAFANA_API_KEY }} # Requires a Grafana API key from Grafana.com.
1313
steps:
1414
- uses: actions/checkout@v3
1515

@@ -78,45 +78,45 @@ jobs:
7878
echo "path=release_notes.md" >> $GITHUB_OUTPUT
7979
8080
- name: Check package version
81-
run: if [ "v$\{{ steps.metadata.outputs.plugin-version }}" != "$\{{ steps.metadata.outputs.github-tag }}" ]; then printf "\033[0;31mPlugin version doesn't match tag name\033[0m\n"; exit 1; fi
81+
run: if [ "v${{ steps.metadata.outputs.plugin-version }}" != "${{ steps.metadata.outputs.github-tag }}" ]; then printf "\033[0;31mPlugin version doesn't match tag name.\033[0m\n"; echo v${{ steps.metadata.outputs.plugin-version }} ${{ steps.metadata.outputs.github-tag }}; exit 1; fi
8282

8383
- name: Package plugin
8484
id: package-plugin
8585
run: |
86-
mv dist $\{{ steps.metadata.outputs.plugin-id }}
87-
zip $\{{ steps.metadata.outputs.archive }} $\{{ steps.metadata.outputs.plugin-id }} -r
88-
md5sum $\{{ steps.metadata.outputs.archive }} > $\{{ steps.metadata.outputs.archive-checksum }}
89-
echo "checksum=$(cat ./$\{{ steps.metadata.outputs.archive-checksum }} | cut -d' ' -f1)" >> $GITHUB_OUTPUT
86+
mv dist ${{ steps.metadata.outputs.plugin-id }}
87+
zip ${{ steps.metadata.outputs.archive }} ${{ steps.metadata.outputs.plugin-id }} -r
88+
md5sum ${{ steps.metadata.outputs.archive }} > ${{ steps.metadata.outputs.archive-checksum }}
89+
echo "checksum=$(cat ./${{ steps.metadata.outputs.archive-checksum }} | cut -d' ' -f1)" >> $GITHUB_OUTPUT
9090
9191
- name: Validate plugin
9292
run: |
9393
git clone https://github.com/grafana/plugin-validator
9494
pushd ./plugin-validator/pkg/cmd/plugincheck2
9595
go install
9696
popd
97-
plugincheck2 -config ./plugin-validator/config/default.yaml $\{{ steps.metadata.outputs.archive }}
97+
plugincheck2 -config ./plugin-validator/config/default.yaml ${{ steps.metadata.outputs.archive }}
9898
9999
- name: Create Github release
100100
uses: softprops/action-gh-release@v1
101101
with:
102102
draft: true
103103
generate_release_notes: true
104104
files: |
105-
./$\{{ steps.metadata.outputs.archive }}
106-
./$\{{ steps.metadata.outputs.archive-checksum }}
105+
./${{ steps.metadata.outputs.archive }}
106+
./${{ steps.metadata.outputs.archive-checksum }}
107107
body: |
108108
**This Github draft release has been created for your plugin.**
109109
110-
_Note: if this is the first release for your plugin please consult the [distributing-your-plugin section](https://github.com/$\{{github.repository}}/blob/main/README.md#distributing-your-plugin) of the README_
110+
_Note: if this is the first release for your plugin please consult the [distributing-your-plugin section](https://github.com/${{github.repository}}/blob/main/README.md#distributing-your-plugin) of the README_
111111
112112
If you would like to submit this release to Grafana please consider the following steps:
113113
114-
- Check the Validate plugin step in the [release workflow](https://github.com/$\{{github.repository}}/commit/$\{{github.sha}}/checks/$\{{github.run_id}}) for any warnings that need attention
114+
- Check the Validate plugin step in the [release workflow](https://github.com/${{github.repository}}/commit/${{github.sha}}/checks/${{github.run_id}}) for any warnings that need attention
115115
- Navigate to https://grafana.com/auth/sign-in/ to sign into your account
116116
- Once logged in click **My Plugins** in the admin navigation
117117
- Click the **Submit Plugin** button
118118
- Fill in the Plugin Submission form:
119-
- Paste this [.zip asset link](https://github.com/$\{{ github.repository }}/releases/download/v$\{{ steps.metadata.outputs.plugin-version }}/$\{{ steps.metadata.outputs.archive }}) in the Plugin URL field
120-
- Paste this [.zip.md5 link](https://github.com/$\{{ github.repository }}/releases/download/v$\{{ steps.metadata.outputs.plugin-version }}/$\{{ steps.metadata.outputs.archive-checksum }}) in the MD5 field
119+
- Paste this [.zip asset link](https://github.com/${{ github.repository }}/releases/download/v${{ steps.metadata.outputs.plugin-version }}/${{ steps.metadata.outputs.archive }}) in the Plugin URL field
120+
- Paste this [.zip.md5 link](https://github.com/${{ github.repository }}/releases/download/v${{ steps.metadata.outputs.plugin-version }}/${{ steps.metadata.outputs.archive-checksum }}) in the MD5 field
121121
122122
Once done please remove these instructions and publish this release.

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changelog
22

3-
## v1.0.0 (2023-01-17)
3+
## 1.0.0 (2023-01-17)
44

55
Initial release.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "googlecloud-logging-datasource",
3-
"version": "v1.0.0",
3+
"version": "1.0.0",
44
"description": "Backend Grafana plugin that enables visualization of GCP Cloud Logging logs in Grafana.",
55
"scripts": {
66
"build": "grafana-toolkit plugin:build",

src/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
}
3333
],
3434
"screenshots": [],
35-
"version": "0.0.0",
35+
"version": "1.0.0",
3636
"updated": "%TODAY%"
3737
},
3838
"dependencies": {

0 commit comments

Comments
 (0)