From 46e8a2eb72da05c4eacfda47b47ed9f88fe91511 Mon Sep 17 00:00:00 2001 From: Tom Pughe <147526382+TomPughe@users.noreply.github.com> Date: Tue, 18 Jun 2024 10:15:33 +0100 Subject: [PATCH] Update and rename first.yml to challenge.yml attempt at creating a pipeline that generates an artifact --- .github/workflows/challenge.yml | 20 ++++++++++++++++++++ .github/workflows/first.yml | 21 --------------------- 2 files changed, 20 insertions(+), 21 deletions(-) create mode 100755 .github/workflows/challenge.yml delete mode 100755 .github/workflows/first.yml diff --git a/.github/workflows/challenge.yml b/.github/workflows/challenge.yml new file mode 100755 index 0000000..58e3e2c --- /dev/null +++ b/.github/workflows/challenge.yml @@ -0,0 +1,20 @@ +name: challenge + +on: [push] + +env: + FILE_NAME: README.md +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + + - name: Check out code + uses: actions/checkout@v1 + + - name: Upload an arbitrary artifact + uses: actions/upload-artifact@v1.0.0 + with: + name: ubuntu + path: ./${{ env.FILE_NAME }} diff --git a/.github/workflows/first.yml b/.github/workflows/first.yml deleted file mode 100755 index 27569f5..0000000 --- a/.github/workflows/first.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: first - -on: push - -jobs: - job1: - name: First job - runs-on: ubuntu-latest - steps: - - name: Step one - uses: actions/checkout@v2 - - name: Step two - run: env | sort - job2: - name: Second job - runs-on: windows-latest - steps: - - name: Step one - uses: actions/checkout@v2 - - name: Step two - run: "Get-ChildItem Env: | Sort-Object Name" \ No newline at end of file