From 5420334213e96477844009603ce63df1c5a57f08 Mon Sep 17 00:00:00 2001 From: nakata5321 Date: Wed, 23 Mar 2022 15:51:38 +0300 Subject: [PATCH 1/3] create auto release --- .github/workflows/release.yml | 42 +++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..e681d05 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,42 @@ +name: Auto Release + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.9 + uses: actions/setup-python@v2 + with: + python-version: 3.9 + - name: Install Poetry + uses: snok/install-poetry@v1 + with: + virtualenvs-create: true + virtualenvs-in-project: true + installer-parallel: true + - name: Build package + run: | + poetry --version + poetry build + + - name: get version + id: get_version + shell: bash + run: | + echo "::set-output name=name::$(poetry version)" + echo "::set-output name=version::$(poetry version | cut -d " " -f 2)" + + - name: Upload assets to release + uses: softprops/action-gh-release@v1 + with: + name: ${{ steps.get_version.outputs.name }} + tag_name: ${{ steps.get_version.outputs.version }} From 08470bf6771f0ece421cd7d6cc987710d2faf5e0 Mon Sep 17 00:00:00 2001 From: nakata5321 Date: Tue, 29 Mar 2022 13:46:01 +0300 Subject: [PATCH 2/3] delete 'build package' step --- .github/workflows/release.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e681d05..a1ed2ff 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,10 +23,6 @@ jobs: virtualenvs-create: true virtualenvs-in-project: true installer-parallel: true - - name: Build package - run: | - poetry --version - poetry build - name: get version id: get_version From dceeb22d3501e37c0919168b87a4e55523075701 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=81=D0=B5=D0=BD=D0=B8=D0=B9=20=D0=92=D0=B5?= =?UTF-8?q?=D0=BB=D0=B8=D1=87=D0=BA=D0=BE?= <74658894+arseniiarsenii@users.noreply.github.com> Date: Mon, 4 Apr 2022 20:33:31 +0300 Subject: [PATCH 3/3] Update pyproject.toml --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 25543c1..24a91b1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "feecc-ipfs-gateway" -version = "0.1.0" +version = "1.0.0" description = "A simple IPFS gateway for Feecc QA system" authors = ["arseniiarsenii "] license = "Apache-2.0"