Skip to content

Create workflow_with_artifacts.yml #1

Create workflow_with_artifacts.yml

Create workflow_with_artifacts.yml #1

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 }}