Create workflow_with_artifacts.yml #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |