From 976408eaafd554cb01d08d796e6106cd8e275c19 Mon Sep 17 00:00:00 2001 From: Elizabeth Pollard Date: Sun, 25 Aug 2024 20:25:23 +1000 Subject: [PATCH 1/2] pipeline --- .github/workflows/cool-pipeline.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/cool-pipeline.yml diff --git a/.github/workflows/cool-pipeline.yml b/.github/workflows/cool-pipeline.yml new file mode 100644 index 0000000..547826d --- /dev/null +++ b/.github/workflows/cool-pipeline.yml @@ -0,0 +1,24 @@ +name: Lab 3 Create Artifact +on: + push: + branches: + - main + pull_request: + branches: + - main +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Use Node.js 18.x + uses: actions/setup-node@v3 + with: + node-version: "18" + - name: Pretend to build + run: echo Pretending to build some kind of app... + - name: Push artifact foo.txt + uses: action/upload-artifact@v3 + with: + name: my-artifact + path: foo.txt From 280bdc0b3857b69015276a2fa66045a226885ee4 Mon Sep 17 00:00:00 2001 From: Elizabeth Pollard Date: Sun, 25 Aug 2024 20:29:17 +1000 Subject: [PATCH 2/2] fix --- .github/workflows/cool-pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cool-pipeline.yml b/.github/workflows/cool-pipeline.yml index 547826d..7540f95 100644 --- a/.github/workflows/cool-pipeline.yml +++ b/.github/workflows/cool-pipeline.yml @@ -18,7 +18,7 @@ jobs: - name: Pretend to build run: echo Pretending to build some kind of app... - name: Push artifact foo.txt - uses: action/upload-artifact@v3 + uses: actions/upload-artifact@v3 with: name: my-artifact path: foo.txt