Skip to content

Commit

Permalink
Drop hopefully redundant step
Browse files Browse the repository at this point in the history
  • Loading branch information
programming-wolf committed Nov 8, 2022
1 parent 90c70dc commit a97d2f9
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/build_releasecandidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,22 +75,3 @@ jobs:
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
commit_message: Publish Release Candidate ${{ env.RELEASE_VERSION }}
- name: Upload Release Candidate Files
if: startsWith(github.ref, 'refs/tags/')
id: upload-release-candidate-assets
uses: actions/github-script@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
script: |
const fs = require('fs').promises;
const { repo: { owner, repo }, sha } = context;
for (let file of await fs.readdir('./release_dir')) {
await github.repos.uploadReleaseAsset({
owner, repo,
release_id: ${{ steps.create-release-candidate.outputs.id }},
name: file,
data: await fs.readFile(`./release_dir/${file}`)
});
}

0 comments on commit a97d2f9

Please sign in to comment.