From c3108292b359681f2ce60080652674829d1ef58e Mon Sep 17 00:00:00 2001 From: Seth Rader <4LT@users.noreply.github.com> Date: Fri, 1 Jul 2022 14:55:38 -0400 Subject: [PATCH 1/3] Create makefile.yml --- .github/workflows/makefile.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/makefile.yml diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml new file mode 100644 index 0000000..2824253 --- /dev/null +++ b/.github/workflows/makefile.yml @@ -0,0 +1,22 @@ +name: Release Package + +on: + release: + branches: [ "master" ] + +jobs: + package: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: build & zip + run: make package + + - name: upload + uses: actions/upload-artifact@v3 + with: + name: ntcn-${{ github.event.release.tag_name }} + path: build/ntcn.zip From a9d920f42df06c8d3d750120b172bedfcaf1cc6d Mon Sep 17 00:00:00 2001 From: seth Date: Fri, 1 Jul 2022 15:13:37 -0400 Subject: [PATCH 2/3] Don't double-zip --- .github/workflows/{makefile.yml => package.yml} | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) rename .github/workflows/{makefile.yml => package.yml} (70%) diff --git a/.github/workflows/makefile.yml b/.github/workflows/package.yml similarity index 70% rename from .github/workflows/makefile.yml rename to .github/workflows/package.yml index 2824253..22b71fd 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/package.yml @@ -12,11 +12,13 @@ jobs: steps: - uses: actions/checkout@v3 - - name: build & zip - run: make package + - name: build package & remove zip + run: | + make package + rm build/ntcn.zip - name: upload uses: actions/upload-artifact@v3 with: name: ntcn-${{ github.event.release.tag_name }} - path: build/ntcn.zip + path: build/ntcn/ From a8b88d2e1d420c72152d6ee40cd27f4aa323718b Mon Sep 17 00:00:00 2001 From: seth Date: Fri, 1 Jul 2022 15:15:53 -0400 Subject: [PATCH 3/3] No need to rm zip --- .github/workflows/package.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 22b71fd..4cf6f0c 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -12,10 +12,8 @@ jobs: steps: - uses: actions/checkout@v3 - - name: build package & remove zip - run: | - make package - rm build/ntcn.zip + - name: build package + run: make package - name: upload uses: actions/upload-artifact@v3