From 201e399361ec6b297b82afc6d790461a33603e82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9D=93=99=F0=9D=93=BE=F0=9D=93=B5=F0=9D=93=B2?= =?UTF-8?q?=F0=9D=93=B8?= Date: Sun, 1 Sep 2024 11:06:05 +0200 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e6da781..72cd60e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,6 +34,7 @@ jobs: sudo bash build/run.sh postfix - name: Build .deb Package + id: build_deb run: | cd $HOME/The-World-Is-Yours/ sudo bash -c 'function create_deb() { @@ -84,18 +85,20 @@ jobs: dpkg-deb --build ${PKG_DIR} mv ${PKG_DIR}.deb /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' - name: Create Git Tag run: | + VERSION=${{ steps.build_deb.outputs.VERSION }} git config user.name "theraw" - git config user.email "raw@dopehosting.net" - git tag v${{ steps.build.outputs.VERSION }} - git push origin v${{ steps.build.outputs.VERSION }} + git config user.email "me@julio.al" + git tag v$VERSION + git push origin v$VERSION - name: Upload .deb Package as Release Asset uses: softprops/action-gh-release@v1 with: files: /opt/*.deb env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}