Update main.yml
This commit is contained in:
@@ -34,6 +34,7 @@ jobs:
|
|||||||
sudo bash build/run.sh postfix
|
sudo bash build/run.sh postfix
|
||||||
|
|
||||||
- name: Build .deb Package
|
- name: Build .deb Package
|
||||||
|
id: build_deb
|
||||||
run: |
|
run: |
|
||||||
cd $HOME/The-World-Is-Yours/
|
cd $HOME/The-World-Is-Yours/
|
||||||
sudo bash -c 'function create_deb() {
|
sudo bash -c 'function create_deb() {
|
||||||
@@ -84,18 +85,20 @@ jobs:
|
|||||||
dpkg-deb --build ${PKG_DIR}
|
dpkg-deb --build ${PKG_DIR}
|
||||||
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"
|
||||||
|
echo "::set-output name=VERSION::${VERSION}"
|
||||||
}; create_deb'
|
}; create_deb'
|
||||||
|
|
||||||
- name: Create Git Tag
|
- name: Create Git Tag
|
||||||
run: |
|
run: |
|
||||||
|
VERSION=${{ steps.build_deb.outputs.VERSION }}
|
||||||
git config user.name "theraw"
|
git config user.name "theraw"
|
||||||
git config user.email "raw@dopehosting.net"
|
git config user.email "me@julio.al"
|
||||||
git tag v${{ steps.build.outputs.VERSION }}
|
git tag v$VERSION
|
||||||
git push origin v${{ steps.build.outputs.VERSION }}
|
git push origin v$VERSION
|
||||||
|
|
||||||
- name: Upload .deb Package as Release Asset
|
- name: Upload .deb Package as Release Asset
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
files: /opt/*.deb
|
files: /opt/*.deb
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user