diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 172540f..dff2763 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -56,11 +56,11 @@ jobs: chmod 775 $DEBIAN_PATH/postinst mv .next/standalone $SERVER_BIN_PATH dpkg-deb --build $TMP_DIR - mv /tmp/liman-website.deb /tmp/liman-website-x64.deb + mv /tmp/liman-website.deb /tmp/liman-website-${{ github.run_number }}.deb rm -rf $DEBIAN_PATH sed -i s/%VERSION%/${{ github.run_number }}/g build/rhel/website.spec - rpmbuild -ba build/rhel/website.spec --define "_app_dir $TMP_DIR" --define "_rpmdir /tmp" --define "_rpmfilename liman-website-x64.rpm" + rpmbuild -ba build/rhel/website.spec --define "_app_dir $TMP_DIR" --define "_rpmdir /tmp" --define "_rpmfilename liman-website-${{ github.run_number }}.rpm" - name: Release 🚀 id: create_release @@ -68,7 +68,9 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.TOKEN }} with: - files: /tmp/liman-${{ env.UI_BRANCH }}-${{ github.run_number }}.zip + files: | + /tmp/liman-website-${{ github.run_number }}.deb + /tmp/liman-website-${{ github.run_number }}.rpm name: "Release ${{ env.UI_BRANCH }} ${{ github.run_number }}" tag_name: "release.${{ env.UI_BRANCH }}.${{ github.run_number }}" prerelease: ${{ env.PRERELEASE }} \ No newline at end of file diff --git a/build/debian/control b/build/debian/control index be378cf..a50abea 100644 --- a/build/debian/control +++ b/build/debian/control @@ -5,4 +5,4 @@ Architecture: amd64 Priority: optional Maintainer: Doğukan Öksüz Description: Liman Website Service -Depends: nodejs \ No newline at end of file +Depends: nodejs diff --git a/build/debian/postinst b/build/debian/postinst index cdb43a9..15b8ce7 100644 --- a/build/debian/postinst +++ b/build/debian/postinst @@ -33,4 +33,4 @@ WantedBy=multi-user.target systemctl daemon-reload systemctl enable liman-website.service -systemctl restart liman-website.service \ No newline at end of file +systemctl restart liman-website.service diff --git a/build/rhel/website.spec b/build/rhel/website.spec index 86c7116..3cf3615 100644 --- a/build/rhel/website.spec +++ b/build/rhel/website.spec @@ -59,4 +59,4 @@ systemctl restart liman-website.service /liman/website/* /liman/website/.env.example -%define _unpackaged_files_terminate_build 0 \ No newline at end of file +%define _unpackaged_files_terminate_build 0