From c3952e3de659f959ea2aa4f9e58652aa1e3967de Mon Sep 17 00:00:00 2001 From: Joon Seo Kim Date: Tue, 21 Nov 2023 23:31:51 +0900 Subject: [PATCH] Create workflow_with_artifacts.yml --- .github/workflows/workflow_with_artifacts.yml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/workflow_with_artifacts.yml diff --git a/.github/workflows/workflow_with_artifacts.yml b/.github/workflows/workflow_with_artifacts.yml new file mode 100644 index 0000000..d3609ca --- /dev/null +++ b/.github/workflows/workflow_with_artifacts.yml @@ -0,0 +1,24 @@ +name: artifact + +on: [push] + +env: + FILE_NAME: hello-server + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + + - name: Check out code + uses: actions/checkout@v1 + + - name: Build ${{ env.FILE_NAME }} for ubuntu-latest + run: go build ${{ env.FILE_NAME }}.go + + - name: Upload artifact for linux + uses: actions/upload-artifact@v1.0.0 + with: + name: linux + path: ./${{ env.FILE_NAME }}