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