Skip to content

Commit

Permalink
Create workflow_with_artifacts.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
KimJoonSeo authored Nov 21, 2023
1 parent f660540 commit c3952e3
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/workflow_with_artifacts.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
name: linux
path: ./${{ env.FILE_NAME }}

0 comments on commit c3952e3

Please sign in to comment.