From ce156a1286f6894ba82e438ebce4365616b1f869 Mon Sep 17 00:00:00 2001 From: Oleg Chendighelean Date: Thu, 21 Nov 2024 17:04:30 +0000 Subject: [PATCH] test --- .github/workflows/release.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index fbe69a7c1a..77e3783644 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -8,6 +8,7 @@ on: jobs: create-draft-release: runs-on: ubuntu-latest + environment: "Production – umami-v2" steps: - name: Check out code uses: actions/checkout@v4 @@ -44,20 +45,22 @@ jobs: - name: Import GPG key uses: crazy-max/ghaction-import-gpg@v6 with: - gpg_private_key: ${{ env.GPG_PRIVATE_KEY }} - passphrase: ${{ env.GPG_PASSPHRASE }} - fingerprint: ${{env.GPG_KEY_ID }} + gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} + passphrase: ${{ secrets.GPG_PASSPHRASE }} + fingerprint: ${{ secrets.GPG_KEY_ID }} git_user_signingkey: true - name: Generate deb and rpm files working-directory: apps/desktop + env: + GH_TOKEN: ${{ secrets.PERSONAL_GH_TOKEN }} run: pnpm run electron:package:linux - name: Sign the deb and rpm files using dpkg-sig and rpm-sign working-directory: apps/desktop run: | sudo apt install -y dpkg-sig - dpkg-sig --sign builder -k ${{ env.GPG_KEY_ID }} ./dist/*.deb + dpkg-sig --sign builder -k ${{ secrets.GPG_KEY_ID }} ./dist/*.deb rpm --addsign ./dist/*.rpm - name: Upload deb and rpm files @@ -69,6 +72,7 @@ jobs: create-release-mac: runs-on: macos-latest needs: create-draft-release + environment: "Production – umami-v2" steps: - name: Check out code uses: actions/checkout@v4