Skip to content

Commit

Permalink
fix: Workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
dogukanoksuz committed Nov 20, 2023
1 parent c7e753e commit d6beec3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,21 @@ 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
uses: softprops/action-gh-release@v1
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 }}
2 changes: 1 addition & 1 deletion build/debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Architecture: amd64
Priority: optional
Maintainer: Doğukan Öksüz <me@dogukan.dev>
Description: Liman Website Service
Depends: nodejs
Depends: nodejs
2 changes: 1 addition & 1 deletion build/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ WantedBy=multi-user.target

systemctl daemon-reload
systemctl enable liman-website.service
systemctl restart liman-website.service
systemctl restart liman-website.service
2 changes: 1 addition & 1 deletion build/rhel/website.spec
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ systemctl restart liman-website.service
/liman/website/*
/liman/website/.env.example

%define _unpackaged_files_terminate_build 0
%define _unpackaged_files_terminate_build 0

0 comments on commit d6beec3

Please sign in to comment.