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 55acd7d commit 1f11d02
Showing 1 changed file with 25 additions and 11 deletions.
36 changes: 25 additions & 11 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: "Create release"
uses: "actions/github-script@v5"
env:
RELEASE_TAG: "0.7.36"
RELEASE_TAG: "0.7.37"
with:
github-token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}"
script: |
Expand Down Expand Up @@ -61,17 +61,31 @@ jobs:
const repository = context.repo;
try {
await github.rest.repos.uploadReleaseAsset({
data: fs.readFileSync("Makefile"),
const files = [
{
name: "Makefile",
origin: process.env.RELEASE_UPLOAD_URL,
owner: repository.owner,
release_id: process.env.RELEASE_ID,
repo: repository.repo,
});
} catch (error) {
core.setFailed(error.message);
path: "Makefile",
},
{
name: "settings.yml",
path: ".github/settings.yml",
},
}
files.forEach(function (file) {
try {
await github.rest.repos.uploadReleaseAsset({
data: fs.readFileSync(file.path),
name: file.name,
origin: process.env.RELEASE_UPLOAD_URL,
owner: repository.owner,
release_id: process.env.RELEASE_ID,
repo: repository.repo,
});
} catch (error) {
core.setFailed(error.message);
}
});

0 comments on commit 1f11d02

Please sign in to comment.