Skip to content

Conversation

@naterubin
Copy link

Proposed Changes:

  1. Adds Github Action to attach zip archives of lambdas to releases

PR Checklist:

  • I have added my changes to the CHANGELOG or a CHANGELOG entry is not required.

Copy link

@theodorehreuter theodorehreuter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor tweaks, approved to unblock

on:
release:
types:
- published

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets add a tag validator too like tags: ['v.*.*.*] so this is only getting run on proper releases that are versioned correctly not just any old tag. Maybe that's not quite the intent but adding only to official releases seems logical.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, it looks like the tags filter is only available for the push event: https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax. release only supports the types filter.

- name: Get node version
run: echo "NODE_VERSION=$(cat .nvmrc)" >> "$GITHUB_ENV"
- name: Get stac-server version
run: echo "STAC_SERVER_VERSION=$(npm pkg get version | tr -d '\"')" >> "$GITHUB_ENV"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we get this from the tag being created instead ala github.ref_name? If you opted to go that way.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, very good call, that cleans the workflow up a lot actually!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants