Update main.yml
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
name: Build and Publish NGINX
|
name: Build and Publish NGINX
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
@@ -6,27 +7,32 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get -y install git dpkg-dev
|
sudo apt-get -y install git dpkg-dev
|
||||||
|
|
||||||
- name: Clone the repository
|
- name: Clone the repository
|
||||||
run: |
|
run: |
|
||||||
cd $HOME
|
cd $HOME
|
||||||
git clone https://github.com/theraw/The-World-Is-Yours.git
|
git clone https://github.com/theraw/The-World-Is-Yours.git
|
||||||
cd The-World-Is-Yours/
|
cd The-World-Is-Yours/
|
||||||
|
|
||||||
- name: Build NGINX
|
- name: Build NGINX
|
||||||
run: |
|
run: |
|
||||||
cd $HOME/The-World-Is-Yours/
|
cd $HOME/The-World-Is-Yours/
|
||||||
sudo bash build/run.sh new
|
sudo bash build/run.sh new
|
||||||
sudo bash build/run.sh build
|
sudo bash build/run.sh build
|
||||||
sudo bash build/run.sh postfix
|
sudo bash build/run.sh postfix
|
||||||
|
|
||||||
- name: Build .deb Package
|
- name: Build .deb Package
|
||||||
run: |
|
run: |
|
||||||
cd $HOME/The-World-Is-Yours/
|
cd $HOME/The-World-Is-Yours/
|
||||||
@@ -79,8 +85,11 @@ jobs:
|
|||||||
mv ${PKG_DIR}.deb /opt/${PKG_NAME}_${VERSION}_${ARCH}.deb
|
mv ${PKG_DIR}.deb /opt/${PKG_NAME}_${VERSION}_${ARCH}.deb
|
||||||
echo "Debian package created at /opt/${PKG_NAME}_${VERSION}_${ARCH}.deb"
|
echo "Debian package created at /opt/${PKG_NAME}_${VERSION}_${ARCH}.deb"
|
||||||
}; create_deb'
|
}; create_deb'
|
||||||
- name: Upload .deb Package as Artifact
|
|
||||||
uses: actions/upload-artifact@v3
|
- name: Upload .deb Package as Release Asset
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
name: twiy-nginx-deb
|
files: /opt/*.deb
|
||||||
path: /opt/*.deb
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}
|
||||||
|
RELEASE_TAG: v${{ steps.build.outputs.VERSION }}
|
||||||
|
|||||||
Reference in New Issue
Block a user