Skip to content

Commit

Permalink
fix: release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bweigel committed Feb 17, 2023
1 parent 9515a7f commit 48a8d7c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml

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

3 changes: 0 additions & 3 deletions .projen/tasks.json

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

5 changes: 2 additions & 3 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const project = new awscdk.AwsCdkTypeScriptApp({
'post-upgrade': 'npx projen upgrade:ci:py',
},
release: true,
releaseTrigger: ReleaseTrigger.scheduled({ schedule: '0 17 * * *' }),
releaseTrigger: ReleaseTrigger.scheduled({ schedule: '0 0 * * 0' }),
githubOptions: {
mergify: true,
projenCredentials: github.GithubCredentials.fromApp(),
Expand Down Expand Up @@ -155,7 +155,6 @@ const bundle = project.addTask(`bundle:binary`, {
project.packageTask.prependSpawn(testIntegration);
project.packageTask.prependSpawn(bundle);
project.packageTask.prependExec(`mkdir -p ./dist`);
project.packageTask.prependExec(`rm -rf ./dist`);
project.packageTask.exec(`zip -r ../../dist/tesseract-al2-x86.zip .`, { cwd: './ready-to-use/amazonlinux-2' });
project.addTask('upgrade:ci:py', {
steps: [
Expand All @@ -172,7 +171,7 @@ project.addTask('upgrade:ci:py', {
],
});
project.release?.addJobs({
'upload_release_artifact': {
upload_release_artifact: {
runsOn: ['ubuntu-latest'],
permissions: { contents: JobPermission.WRITE },
needs: ['release', 'release_github'],
Expand Down

0 comments on commit 48a8d7c

Please sign in to comment.