From 3b0c6917dccdce2731549447892780ccdbedb0fa Mon Sep 17 00:00:00 2001 From: Amarachi Omereife Date: Tue, 17 Oct 2023 14:36:20 +0100 Subject: [PATCH] refactoring --- .github/workflows/attach-release.yml | 4 ++-- .github/workflows/release.yml | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/attach-release.yml b/.github/workflows/attach-release.yml index 1b34cd64..7fa89766 100644 --- a/.github/workflows/attach-release.yml +++ b/.github/workflows/attach-release.yml @@ -16,9 +16,9 @@ jobs: # run: mkdir artifacts # working-directory: ./ - - name: Upload MyArtifacts - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v3 with: + name: my-artifact path: ./artifacts - name: Download MyArtifacts diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..05b386ca --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,15 @@ +- name: build +run: make build + - name: version + run: echo "::set-output name=version::$(https://github.com/unicorn-engine/unicorn/archive/refs/tags/ --version)" + id: version + - name: release + uses: actions/create-release@v3 + id: create_release + with: + draft: false + prerelease: false + release_name: ${{ steps.version.outputs.version }} + tag_name: ${{ github.ref }} + body_path: ChangeLog +