From 8335ca9c14c96177dd984b4295942ba0aef977e7 Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Tue, 4 Oct 2022 21:57:06 +0200 Subject: [PATCH] ci: prepare 3rd parties releases [skip ci] --- .github/workflows/insider-linux.yml | 3 --- .github/workflows/stable-linux.yml | 30 ++++++++++++++++++++++++++++ .github/workflows/stable-windows.yml | 2 +- 3 files changed, 31 insertions(+), 4 deletions(-) diff --git a/.github/workflows/insider-linux.yml b/.github/workflows/insider-linux.yml index d865506..7eaf0ba 100644 --- a/.github/workflows/insider-linux.yml +++ b/.github/workflows/insider-linux.yml @@ -127,9 +127,6 @@ jobs: RELEASE_VERSION: ${{ needs.build.outputs.RELEASE_VERSION }} run: echo "PACKAGE_VERSION=${RELEASE_VERSION/-*/}" >> $GITHUB_ENV - - name: Register local actions - uses: actions/checkout@master - - name: Publish vscodium-insiders-bin uses: zokugun/github-actions-aur-releaser@v1 with: diff --git a/.github/workflows/stable-linux.yml b/.github/workflows/stable-linux.yml index c406e25..665bfb4 100644 --- a/.github/workflows/stable-linux.yml +++ b/.github/workflows/stable-linux.yml @@ -112,6 +112,36 @@ jobs: run: ./update_version.sh if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes' + aur: + needs: build + runs-on: ubuntu-latest + if: needs.build.outputs.SHOULD_DEPLOY == 'yes' + + steps: + - name: Get version + env: + RELEASE_VERSION: ${{ needs.build.outputs.RELEASE_VERSION }} + run: echo "PACKAGE_VERSION=${RELEASE_VERSION/-*/}" >> $GITHUB_ENV + + - name: Publish vscodium + uses: zokugun/github-actions-aur-releaser@v1 + with: + package_name: vscodium + package_version: ${{ env.PACKAGE_VERSION }} + aur_private_key: ${{ secrets.AUR_PRIVATE_KEY }} + aur_username: ${{ secrets.AUR_USERNAME }} + aur_email: ${{ secrets.AUR_EMAIL }} + + - name: Publish vscodium-git + uses: zokugun/github-actions-aur-releaser@v1 + with: + package_name: vscodium-git + package_type: rolling + package_version: ${{ env.PACKAGE_VERSION }} + aur_private_key: ${{ secrets.AUR_PRIVATE_KEY }} + aur_username: ${{ secrets.AUR_USERNAME }} + aur_email: ${{ secrets.AUR_EMAIL }} + snap: needs: build runs-on: ubuntu-latest diff --git a/.github/workflows/stable-windows.yml b/.github/workflows/stable-windows.yml index 175c315..dc07247 100644 --- a/.github/workflows/stable-windows.yml +++ b/.github/workflows/stable-windows.yml @@ -129,7 +129,7 @@ jobs: - name: Release to WinGet uses: vedantmgoyal2009/winget-releaser@latest with: - identifier: VSCodium.VSCodium.Insiders + identifier: VSCodium.VSCodium release-tag: ${{ env.RELEASE_VERSION }} installers-regex: '\.exe$' # only .exe files token: ${{ secrets.STRONGER_GITHUB_TOKEN }}