From d533783bf1554dd03f1945a7f49179162baa2370 Mon Sep 17 00:00:00 2001 From: Rajesh Susai Date: Wed, 16 Oct 2024 11:25:57 -0400 Subject: [PATCH] adding a create-release action and building docker image does not need artifacts (#84) --- .github/workflows/publish.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f216c31..0ec89b5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -41,11 +41,12 @@ jobs: sudo gem install fpm sudo scripts/build-packages - - name: Upload build artifact - uses: actions/upload-artifact@v4 + - name: Create Release + uses: ncipollo/release-action@v1 with: - name: awsudo:${{github.ref_name}} - path: awsudo-${{github.ref_name}}.tgz + artifacts: "*.deb,*.rpm" + name: ${{ github.ref }} + tag: ${{ github.ref }} Deploy_Docker_Image: runs-on: ubuntu-latest @@ -53,11 +54,6 @@ jobs: if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') steps: - - name: Download build artifact - uses: actions/download-artifact@v4 - with: - name: awsudo:${{github.ref_name}} - - name: Login to Docker Hub uses: docker/login-action@v3 with: @@ -65,4 +61,4 @@ jobs: password: ${{ secrets.DOCKER_PASSWORD }} - name: Build Docker image - run: scripts/deploy-docker + run: sudo scripts/deploy-docker