Skip to content

Commit

Permalink
chore: fix lambda release
Browse files Browse the repository at this point in the history
  • Loading branch information
mrgrain committed Sep 23, 2024
1 parent 0cf6e81 commit 0e280c9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 4 additions & 6 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,14 @@ project.release?.addJobs({
steps: [
{
name: 'Checkout',
uses: 'actions/checkout@v2',
with: {
'fetch-depth': 0,
},
uses: 'actions/checkout@v4',
},
{
name: 'Download build artifacts',
uses: 'actions/download-artifact@v4',
with: {
name: 'build-artifact',
path: '.repo',
path: 'dist',
},
},
{
Expand All @@ -84,10 +81,11 @@ project.release?.addJobs({
name: 'Release lambda',
// For some reason, need '--clobber' otherwise we always get errors that these files already exist. They're probably
// uploaded elsewhere but TBH I don't know where so just add this flag to make it not fail.
run: 'gh release upload --clobber -R $GITHUB_REPOSITORY v$(cat .repo/dist/version.txt) lambda/bootstrap lambda/bootstrap.sha256 ',
run: 'gh release upload --clobber -R $GITHUB_REPOSITORY $(cat dist/releasetag.txt) lambda/bootstrap lambda/bootstrap.sha256 ',
env: {
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}',
GITHUB_REPOSITORY: '${{ github.repository }}',
GITHUB_REF: '${{ github.sha }}',
},
},
],
Expand Down

0 comments on commit 0e280c9

Please sign in to comment.