Skip to content

Commit

Permalink
Hmm
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Jan 22, 2022
1 parent 089c810 commit b9424f4
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: "Create release"
uses: "actions/github-script@v5"
env:
RELEASE_TAG: "0.7.28"
RELEASE_TAG: "0.7.29"
with:
github-token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}"
script: |
Expand All @@ -38,4 +38,24 @@ jobs:
tag_name: "${{ env.RELEASE_TAG }}",
});
console.log(response)
core.exportVariable("RELEASE_ID", response.data.id)
core.exportVariable("RELEASE_UPLOAD_URL", response.data.upload_url)
- name: "Upload release assets"
uses: "actions/github-script@v5"
with:
github-token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}"
script: |
const fs = require("fs");
const repository = context.repo;
await github.rest.repos.uploadReleaseAsset({
data: fs.readFileSync("Makefile"),
name: "Makefile",
origin: "${{ env.RELEASE_UPLOAD_URL }}",
owner: repository.owner,
release_id: "${{ env.RELEASE_ID }}",
repo: repository.repo,
});

0 comments on commit b9424f4

Please sign in to comment.