Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Commit

Permalink
ci: try fixing the release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sandhose committed Oct 10, 2023
1 parent 3244203 commit 423c9c2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,22 @@ jobs:
const version = process.env.VERSION;
const parent = context.sha;
const cargoToml = await fs.readFile("Cargo.toml");
const cargoTomlBlob = await octokit.rest.git.createBlob({
const cargoTomlBlob = await github.rest.git.createBlob({
owner,
repo,
content: cargoToml.toString("base64"),
encoding: "base64",
});
const cargoLock = await fs.readFile("Cargo.lock");
const cargoLockBlob = await octokit.rest.git.createBlob({
const cargoLockBlob = await github.rest.git.createBlob({
owner,
repo,
content: cargoLock.toString("base64"),
encoding: "base64",
});
const tree = await octokit.rest.git.createTree({
const tree = await github.rest.git.createTree({
owner,
repo,
tree: [{
Expand All @@ -88,15 +88,15 @@ jobs:
base_tree: parent,
});
const commit = await octokit.rest.git.createCommit({
const commit = await github.rest.git.createCommit({
owner,
repo,
message: version,
parents: [parent],
tree: tree.data.sha,
});
await octokit.rest.git.createTag({
await github.rest.git.createTag({
owner,
repo,
tag: version,
Expand All @@ -119,14 +119,14 @@ jobs:
const [owner, repo] = process.env.GITHUB_REPOSITORY.split("/");
const version = process.env.VERSION;
const commit = process.env.COMMIT;
await octokit.rest.git.createRef({
await github.rest.git.createRef({
owner,
repo,
ref: `refs/tags/${version}`,
sha: commit,
});
await octokit.rest.git.updateRef({
await github.rest.git.updateRef({
owner,
repo,
ref: "heads/main",
Expand Down

0 comments on commit 423c9c2

Please sign in to comment.