Skip to content

Commit

Permalink
remove creation of the large zip
Browse files Browse the repository at this point in the history
for now only support lunux amd64 binary
release builds will be pre release until verified by a tester
and changelog updated manually

Change-Id: Ia7f090446fd37191493f694f703334e11f2aa590
  • Loading branch information
mtlljm committed Oct 31, 2023
1 parent 97d660d commit 29c93a3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 17 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
workflow_dispatch:
inputs:
release:
description: 'Make a release build'
description: 'Make this a release build'
required: false
type: boolean

Expand Down Expand Up @@ -48,12 +48,12 @@ jobs:
run: |
yarn zip
- uses: actions/upload-artifact@v3
name: Attatch artifacts to job
- name: Attatch artifacts to job
uses: actions/upload-artifact@v3
with:
name: sasesp-plugin-zip-files
path: ./sasesp-plugin*.zip
retention-days: 7
retention-days: 14

- name: Bump version and push tag
if: ${{ inputs.release }}
Expand All @@ -69,4 +69,5 @@ jobs:
tag: ${{ steps.release_version.outputs.new_tag }}
name: Release ${{ steps.release_version.outputs.new_tag }}
body: ${{ steps.release_version.outputs.changelog }}
artifacts: "./sasesp-plugin*.zip"
artifacts: "./sasesp-plugin*.zip"
preRelease: true
10 changes: 0 additions & 10 deletions makezip.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,4 @@ zip({
}).catch(function(err) {
console.error(err.stack);
process.exit(1);
});

zip({
source: packageJson.name + '-all' + '/*',
destination: './' + packageJson.name + '-' + packageJson.version + '-all' + '.zip'
}).then(function() {
console.log('Zip complete.');
}).catch(function(err) {
console.error(err.stack);
process.exit(1);
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"test": "jest --watch --onlyChanged",
"test:ci": "jest --passWithNoTests --maxWorkers 4",
"typecheck": "tsc --noEmit",
"zip": "cp -r dist sasesp-plugin && rm ./sasesp-plugin/*darwin* && rm ./sasesp-plugin/*windows* && rm ./sasesp-plugin/*arm* && cp -r dist sasesp-plugin-all && node makezip.js"
"zip": "cp -r dist sasesp-plugin && rm ./sasesp-plugin/*darwin* && rm ./sasesp-plugin/*windows* && rm ./sasesp-plugin/*arm* && node makezip.js"
},
"license": "Apache-2.0",
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"updated": "%TODAY%"
},
"dependencies": {
"grafanaDependency": ">=7.0.0",
"grafanaDependency": ">=9.0.0",
"plugins": []
}
}

0 comments on commit 29c93a3

Please sign in to comment.