Skip to content

Commit 5865f2d

Browse files
committed
fix(Actions): wrong package name
1 parent ca380f0 commit 5865f2d

File tree

3 files changed

+2
-20
lines changed

3 files changed

+2
-20
lines changed

.github/workflows/CD.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ jobs:
1414
exclude:
1515
- system: win64
1616
python: 3.8
17-
include:
18-
- system: rhel
19-
python: 2.7
2017

2118
steps:
2219
- uses: actions/checkout@v1
@@ -28,7 +25,7 @@ jobs:
2825
- name: Generate package
2926
id: package
3027
run: |
31-
version="${GITHUB_REF##*/*/}"
28+
version="${GITHUB_REF##*/*/v}"
3229
echo ::set-output name=version::$version
3330
npm install
3431
npm run build -- $version python${{ matrix.python }}-${{ matrix.system }}

.github/workflows/CI.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ jobs:
1414
exclude:
1515
- system: win64
1616
python: 3.8
17-
include:
18-
- system: rhel
19-
python: 2.7
2017

2118
steps:
2219
- uses: actions/checkout@v1

package.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,11 @@ const { exec } = require("child_process");
3434
const rimraf = require("rimraf").sync;
3535

3636

37-
// exec(
38-
// "python -m pip install -r server/requirements.txt -t server/pip",
39-
// (err, stdout, stderr) => {
40-
// console.log(`stdout: ${stdout}`);
41-
// console.log(`stderr: ${stderr}`);
42-
// }
43-
// );
44-
45-
46-
47-
4837
const dir = "GeodePackage" + "-" + process.argv[2] + "-" + process.argv[3];
4938
mkdirp.sync(dir);
5039
const owner = "Geode-solutions"
5140

52-
var octokit = new Octokit({auth: "cdaf2908ce0d076eca1a10f6d736e023d57e379a"});
41+
var octokit = new Octokit({auth: process.env.TOKEN});
5342

5443
function getRelease(repo, version, isModule) {
5544
const outputDirectory = isModule ? path.join(dir, "modules") : dir;
@@ -64,7 +53,6 @@ function getRelease(repo, version, isModule) {
6453
const asset = assets.data.find(asset => asset.name.includes(process.argv[3]));
6554
console.log('Asset name:', asset.name);
6655
let assetUrl = asset.url;
67-
assetUrl = assetUrl.concat('?access_token=cdaf2908ce0d076eca1a10f6d736e023d57e379a');
6856
fetch(assetUrl, {
6957
headers: {accept: 'application/octet-stream'}
7058
}).then(response => {

0 commit comments

Comments
 (0)