Skip to content

How to develop a workflow that creates an artifact

Notifications You must be signed in to change notification settings

zafeirisdimi/artifact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

🎭Artifact

Artifact

🏴‍☠️Challenge

    Develop a workflow that creates an artifact

  • Workflow file in a new repo
  • Push trigger
  • Enivonment variable for the artifact name
  • One job with two steps
    1. actions/checkout
    2. actions-artifact

💡Solution

Steps to solve the challenge:

  1. Create a new repository as artifact
  2. Add a Readme
  3. Press Create New Repository
  4. Create new file, with path .github/workflows/artifact.yml
  5. See all the details of file artifact.yml
  6. In the section of steps, we set a name for each step and include the action/checkout and action/upload-artifact
  7. For configure the action/upload-artifact, we use the variable ARTIFACT_NAME and path as with parameters
  8. Press Commit new changes
  9. In the section of Actions, we noticed that our workflow start to run successfully
  10. Well done!!! 😃

❓FAQ

What is a workflow artifact for Github Actions?

Answer:

An artifact is a file or collection of files produced during a workflow run.
For example, you can use artifacts to save your build and test output after a workflow run has ended.
All actions and workflows called within a run have write access to that run's artifacts