QuestionQ6

Author and manage workflows

You need to publish a release, including assets, in GitHub Actions. The solution must satisfy GitHub support requirements.

What should you do?

  • A Run actions/upload-artifact followed by actions/create-release, and then actions/upload-release-asset.
  • B Run gh release create in a script step to create a release and attach the assets after tagging a commit.
  • C Use a GitHub Marketplace action that creates a release and uploads the assets in a single step.
  • D Run git push --tags to automatically trigger GitHub to create a release that includes all the project files.
Explanation

GitHub supports the gh release create CLI command for creating releases. It can create a release associated with a tag and attach release assets, avoiding the no-longer-maintained actions/create-release and actions/upload-release-asset actions.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!