diff --git a/.github/workflows/desktop-app-cd.yml b/.github/workflows/desktop-app-cd.yml index 273949ad5..bc6d54e97 100644 --- a/.github/workflows/desktop-app-cd.yml +++ b/.github/workflows/desktop-app-cd.yml @@ -65,7 +65,6 @@ jobs: git config --global core.eol lf - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 with: node-version: ${{ matrix.node_version }} @@ -78,24 +77,6 @@ jobs: shell: bash run: npm run bootstrap - - name: Build Win desktop app - shell: bash - run: | - cd packages/desktop-app - WIN_CERTIFICATE=windows_sign_certificate.pfx - echo "Recreate the window certificate from the secure environment variable" - echo "${{ env.WIN_CERTIFICATE }}" | base64 --decode > $WIN_CERTIFICATE - npm install - npm run release-win - rm -Rf ./release/win-unpacked - rm -Rf ./release/.cache - rm -Rf ./release/builder-debug.yml - rm -Rf ./release/builder-effective-config.yaml - TAG_VERSION=${{ needs.tag-validation.outputs.tag-version }} - TAG_VERSION=${TAG_VERSION:1} - rm "./release/Leapp-$TAG_VERSION-win.zip" - zip "./release/Leapp-$TAG_VERSION-win.zip" "./release/Leapp Setup $TAG_VERSION.exe" - - name: Build Win desktop app shell: bash run: | @@ -128,6 +109,7 @@ jobs: TAG_VERSION=${{ needs.tag-validation.outputs.tag-version }} TAG_VERSION=${TAG_VERSION:1} aws s3 cp ./release/ "${{ env.S3_BUCKET }}/$TAG_VERSION/" --recursive + build-linux: runs-on: ubuntu-latest needs: [ tag-validation ] @@ -158,6 +140,7 @@ jobs: TAG_VERSION=${{ needs.tag-validation.outputs.tag-version }} TAG_VERSION=${TAG_VERSION:1} aws s3 cp ./release/ "${{ env.S3_BUCKET }}/$TAG_VERSION/" --recursive + build-macos-x64: runs-on: macos-latest needs: [ tag-validation ] @@ -219,6 +202,7 @@ jobs: TAG_VERSION=${{ needs.tag-validation.outputs.tag-version }} TAG_VERSION=${TAG_VERSION:1} aws s3 cp ./release/ "${{ env.S3_BUCKET }}/$TAG_VERSION/" --recursive + build-macos-arm: runs-on: macos-latest needs: [ tag-validation, build-macos-x64 ] @@ -281,6 +265,7 @@ jobs: TAG_VERSION=${{ needs.tag-validation.outputs.tag-version }} TAG_VERSION=${TAG_VERSION:1} aws s3 cp ./release/ "${{ env.S3_BUCKET }}/$TAG_VERSION/" --recursive + publish-draft: runs-on: ubuntu-latest environment: prod @@ -301,6 +286,7 @@ jobs: TAG_VERSION=${TAG_VERSION:1} aws s3 rm "${{ env.S3_BUCKET }}/latest" --recursive aws s3 cp "${{ env.S3_BUCKET }}/$TAG_VERSION/" "${{ env.S3_BUCKET }}/latest" --recursive + publish-changelog: runs-on: ubuntu-latest environment: prod @@ -319,6 +305,7 @@ jobs: - name: Publish changelog run: | aws s3 cp CHANGELOG.md "${{ env.S3_BUCKET }}/" + invalidate-distribution: runs-on: ubuntu-latest environment: prod @@ -337,6 +324,7 @@ jobs: - name: Invalidate distribution run: | aws cloudfront create-invalidation --distribution-id ${{ env.DISTRIBUTION_ID }} --paths "/*" + publish-github-release: runs-on: ubuntu-latest needs: [ invalidate-distribution, tag-validation ]