diff --git a/.github/workflows/my-practice--artifacts.yaml b/.github/workflows/my-practice--artifacts.yaml new file mode 100644 index 00000000..63549160 --- /dev/null +++ b/.github/workflows/my-practice--artifacts.yaml @@ -0,0 +1,31 @@ +name: Practice Artifacts +on: + workflow_dispatch: + +jobs: + produce-artifact: + name: Produce Artifacts + runs-on: ubuntu-24.04 + steps: + - name: create artifact file + run: | + echo "Yo, this is me practicing writing github actiosn yo" > artifacts.txt + echo "This file was generated by 'Produce Articats'" >> artifacts.txt + - name: upload artifact + uses: actions/upload-artifact@v4 + with: + name: my_artifacts + path: artifacts.txt + + consume-artifact: + name: Consume Artifacts + runs-on: ubuntu-24.04 + needs: produce-artifact + steps: + - name: download artifact + uses: actions/download-artifact@v4 + with: + name: my_artifact + + - name: Print artifact + run: cat artifact.txt