Skip to content

actions upfate

actions upfate #4

Workflow file for this run

name: CI for CPP_TCP_TIC_TAC_TOE
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build and test
run: |
make test
make server
make client
- name: Artifact binaries
uses: actions/upload-artifact@v2
with:
name: binaries
path: binaries
# create_release:
# needs: build
# runs-on: ubuntu-latest
# steps:
# - name: Checkout repository
# uses: actions/checkout@v3
# - name: Download binaries
# uses: actions/download-artifact@v2
# with:
# name: binaries
# path: binaries
# - name: Create Release
# id: create_release
# uses: actions/create-release@v1
# with:
# tag_name: v${{ github.run_number }}
# release_name: Release ${{ github.run_number }}
# body: Release notes for version ${{ github.run_number }}
# draft: false
# prerelease: false
# - name: Upload Binaries
# id: upload-binaries
# uses: actions/upload-release-asset@v1
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: binaries/*
# asset_name: binaries.zip
# asset_content_type: application/zip