|
@@ -118,29 +118,22 @@ jobs:
|
|
|
aur:
|
|
|
needs: build
|
|
|
runs-on: ubuntu-latest
|
|
|
+ strategy:
|
|
|
+ fail-fast: false
|
|
|
+ matrix:
|
|
|
+ include:
|
|
|
+ - package_name: vscodium
|
|
|
+ package_type: stable
|
|
|
+ - package_name: vscodium-git
|
|
|
+ package_type: rolling
|
|
|
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
|
|
|
+ - name: Publish ${{ matrix.package_name }}
|
|
|
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 }}
|
|
|
+ package_name: ${{ matrix.package_name }}
|
|
|
+ package_type: ${{ matrix.package_type }}
|
|
|
aur_private_key: ${{ secrets.AUR_PRIVATE_KEY }}
|
|
|
aur_username: ${{ secrets.AUR_USERNAME }}
|
|
|
aur_email: ${{ secrets.AUR_EMAIL }}
|
|
@@ -163,10 +156,10 @@ jobs:
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
- name: Check version
|
|
|
- run: ./stores/snapcraft/check_version.sh
|
|
|
env:
|
|
|
ARCHITECTURE: ${{ matrix.platform }}
|
|
|
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_STORE_LOGIN }}
|
|
|
+ run: ./stores/snapcraft/check_version.sh
|
|
|
|
|
|
- uses: docker/setup-qemu-action@v1
|
|
|
if: env.SHOULD_DEPLOY == 'yes'
|
|
@@ -191,3 +184,14 @@ jobs:
|
|
|
snap: ${{ steps.build.outputs.snap }}
|
|
|
release: stable
|
|
|
if: env.SHOULD_DEPLOY == 'yes'
|
|
|
+
|
|
|
+ deb-rpm-repo-hook:
|
|
|
+ needs: build
|
|
|
+ runs-on: ubuntu-latest
|
|
|
+ if: needs.build.outputs.SHOULD_DEPLOY == 'yes'
|
|
|
+
|
|
|
+ steps:
|
|
|
+ - name: Trigger repository rebuild
|
|
|
+ env:
|
|
|
+ GL_PAGES_TOKEN: ${{ secrets.GL_PAGES_TOKEN }}
|
|
|
+ run: curl -X POST --fail -F token="${GL_PAGES_TOKEN}" -F ref=master https://gitlab.com/api/v4/projects/8762263/trigger/pipeline
|