From 57c64563cad7cfa2c84337b82ab1bd0e9904d26f Mon Sep 17 00:00:00 2001 From: Morteza Bashsiz Date: Tue, 1 Oct 2024 15:10:51 +0200 Subject: [PATCH] change actions --- .github/workflows/debian-dev.yml | 13 +++++++------ .github/workflows/debian.yml | 12 ++++++------ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/debian-dev.yml b/.github/workflows/debian-dev.yml index 44a05a8..6064a97 100644 --- a/.github/workflows/debian-dev.yml +++ b/.github/workflows/debian-dev.yml @@ -6,6 +6,7 @@ on: - dev paths: - 'core/src/**' + - '.github/workflows/**' jobs: build: @@ -29,17 +30,17 @@ jobs: cd .. mkdir -p nipovpn/usr/bin/ cp build/core/nipovpn nipovpn/usr/bin/nipovpn - dpkg-deb --build nipovpn/ build/nipovpn-stage.deb + dpkg-deb --build nipovpn/ build/nipovpn_staging_v1-0-${{ github.run_number }}.deb - name: Upload the Debian nipovpn as an artifact uses: actions/upload-artifact@v3 with: name: nipovpn - path: build/nipovpn-stage.deb + path: build/nipovpn_staging_v1-0-${{ github.run_number }}.deb - name: Show nipovpn information run: | - dpkg -I build/nipovpn-stage.deb + dpkg -I build/nipovpn_staging_v1-0-${{ github.run_number }}.deb release: needs: build @@ -59,7 +60,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} with: tag_name: 'v1.0.${{ github.run_number }}' - release_name: Release ${{ github.run_number }} + release_name: Staging v1.0.${{ github.run_number }} draft: false prerelease: true @@ -69,6 +70,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./nipovpn-stage.deb - asset_name: nipovpn-stage.deb + asset_path: ./nipovpn_staging_v1-0-${{ github.run_number }}.deb + asset_name: nipovpn_staging_v1-0-${{ github.run_number }}.deb asset_content_type: application/octet-stream diff --git a/.github/workflows/debian.yml b/.github/workflows/debian.yml index 011d1b7..2e0ae90 100644 --- a/.github/workflows/debian.yml +++ b/.github/workflows/debian.yml @@ -29,17 +29,17 @@ jobs: cd .. mkdir -p nipovpn/usr/bin/ cp build/core/nipovpn nipovpn/usr/bin/nipovpn - dpkg-deb --build nipovpn/ build/nipovpn.deb + dpkg-deb --build nipovpn/ build/nipovpn_v1-0-${{ github.run_number }}.deb - name: Upload the Debian nipovpn as an artifact uses: actions/upload-artifact@v3 with: name: nipovpn - path: build/nipovpn.deb + path: build/nipovpn_v1-0-${{ github.run_number }}.deb - name: Show nipovpn information run: | - dpkg -I build/nipovpn.deb + dpkg -I build/nipovpn_v1-0-${{ github.run_number }}.deb release: needs: build @@ -59,7 +59,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} with: tag_name: 'v1.0.${{ github.run_number }}' - release_name: Release ${{ github.run_number }} + release_name: Version v1.0.${{ github.run_number }} draft: false prerelease: false @@ -69,6 +69,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./nipovpn.deb - asset_name: nipovpn.deb + asset_path: ./nipovpn_v1-0-${{ github.run_number }}.deb + asset_name: nipovpn_v1-0-${{ github.run_number }}.deb asset_content_type: application/octet-stream