Skip to content

Commit

Permalink
chore(release): release desktop app v0.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
marcovanetti committed Jul 12, 2022
1 parent c39d3ef commit 642969b
Showing 1 changed file with 7 additions and 19 deletions.
26 changes: 7 additions & 19 deletions .github/workflows/desktop-app-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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: |
Expand Down Expand Up @@ -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 ]
Expand Down Expand Up @@ -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 ]
Expand Down Expand Up @@ -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 ]
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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 ]
Expand Down

0 comments on commit 642969b

Please sign in to comment.