Updated release workflow to publish to S3
This commit is contained in:
parent
796e61e6bf
commit
d9bb8cbd2d
|
@ -62,48 +62,70 @@ jobs:
|
||||||
BRANCH_NAME=$(basename ${{ github.ref }})
|
BRANCH_NAME=$(basename ${{ github.ref }})
|
||||||
echo "::set-output name=branch-name::$BRANCH_NAME"
|
echo "::set-output name=branch-name::$BRANCH_NAME"
|
||||||
|
|
||||||
|
- name: Login to Azure
|
||||||
|
uses: Azure/login@ec3c14589bd3e9312b3cc8c41e6860e258df9010
|
||||||
|
with:
|
||||||
|
creds: ${{ secrets.AZURE_PROD_KV_CREDENTIALS }}
|
||||||
|
|
||||||
|
- name: Retrieve secrets
|
||||||
|
id: retrieve-secrets
|
||||||
|
uses: Azure/get-keyvault-secrets@b5c723b9ac7870c022b8c35befe620b7009b336f
|
||||||
|
with:
|
||||||
|
keyvault: "bitwarden-prod-kv"
|
||||||
|
secrets: "aws-electron-access-id, aws-electron-access-key"
|
||||||
|
|
||||||
- name: Download all artifacts
|
- name: Download all artifacts
|
||||||
uses: bitwarden/gh-actions/download-artifacts@c1fa8e09871a860862d6bbe36184b06d2c7e35a8
|
uses: bitwarden/gh-actions/download-artifacts@c1fa8e09871a860862d6bbe36184b06d2c7e35a8
|
||||||
with:
|
with:
|
||||||
workflow: build.yml
|
workflow: build.yml
|
||||||
workflow_conclusion: success
|
workflow_conclusion: success
|
||||||
branch: ${{ steps.branch.outputs.branch-name }}
|
branch: ${{ steps.branch.outputs.branch-name }}
|
||||||
|
path: ./artifacts
|
||||||
|
|
||||||
- name: Rename .pkg to .pkg.archive
|
- name: Rename .pkg to .pkg.archive
|
||||||
env:
|
env:
|
||||||
PKG_VERSION: ${{ steps.retrieve-version.outputs.package_version }}
|
PKG_VERSION: ${{ steps.retrieve-version.outputs.package_version }}
|
||||||
|
working-directory: ./artifacts
|
||||||
run: mv Bitwarden-${{ env.PKG_VERSION }}-universal.pkg Bitwarden-${{ env.PKG_VERSION }}-universal.pkg.archive
|
run: mv Bitwarden-${{ env.PKG_VERSION }}-universal.pkg Bitwarden-${{ env.PKG_VERSION }}-universal.pkg.archive
|
||||||
|
|
||||||
|
- name: Publish artifacts to S3
|
||||||
|
env:
|
||||||
|
AWS_ACCESS_KEY_ID: ${{ steps.retrieve-secrets.outputs.aws-electron-access-id }}
|
||||||
|
AWS_SECRET_ACCESS_KEY: ${{ steps.retrieve-secrets.outputs.aws-electron-access-key }}
|
||||||
|
AWS_DEFAULT_REGION: 'us-west-2'
|
||||||
|
run: |
|
||||||
|
aws s3 cp ./artifacts s3://public-s3-electron-artifacts/desktop/ \
|
||||||
|
--acl "public-read" \
|
||||||
|
--recursive
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
if: ${{ github.event.inputs.release_type != 'Dry Run' }}
|
if: ${{ github.event.inputs.release_type != 'Dry Run' }}
|
||||||
uses: ncipollo/release-action@95215a3cb6e6a1908b3c44e00b4fdb15548b1e09 # v2.8.5
|
uses: ncipollo/release-action@95215a3cb6e6a1908b3c44e00b4fdb15548b1e09 # v2.8.5
|
||||||
env:
|
env:
|
||||||
PKG_VERSION: ${{ steps.retrieve-version.outputs.package_version }}
|
PKG_VERSION: ${{ steps.retrieve-version.outputs.package_version }}
|
||||||
|
ARTIFACT_URL: "https://artifacts.bitwarden.com/desktop"
|
||||||
with:
|
with:
|
||||||
artifacts: "Bitwarden-${{ env.PKG_VERSION }}-amd64.deb,
|
artifacts: "artifacts/Bitwarden-${{ env.PKG_VERSION }}-amd64.deb,
|
||||||
Bitwarden-${{ env.PKG_VERSION }}-x86_64.rpm,
|
artifacts/Bitwarden-${{ env.PKG_VERSION }}-x86_64.rpm,
|
||||||
Bitwarden-${{ env.PKG_VERSION }}-x64.freebsd,
|
artifacts/Bitwarden-${{ env.PKG_VERSION }}-x64.freebsd,
|
||||||
bitwarden_${{ env.PKG_VERSION }}_amd64.snap,
|
artifacts/bitwarden_${{ env.PKG_VERSION }}_amd64.snap,
|
||||||
Bitwarden-${{ env.PKG_VERSION }}-x86_64.AppImage,
|
artifacts/Bitwarden-${{ env.PKG_VERSION }}-x86_64.AppImage,
|
||||||
latest-linux.yml,
|
artifacts/Bitwarden-Portable-${{ env.PKG_VERSION }}.exe,
|
||||||
Bitwarden-Portable-${{ env.PKG_VERSION }}.exe,
|
artifacts/Bitwarden-Installer-${{ env.PKG_VERSION }}.exe,
|
||||||
Bitwarden-Installer-${{ env.PKG_VERSION }}.exe,
|
artifacts/Bitwarden-${{ env.PKG_VERSION }}-ia32-store.appx,
|
||||||
Bitwarden-${{ env.PKG_VERSION }}-ia32-store.appx,
|
artifacts/Bitwarden-${{ env.PKG_VERSION }}-ia32.appx,
|
||||||
Bitwarden-${{ env.PKG_VERSION }}-ia32.appx,
|
artifacts/Bitwarden-${{ env.PKG_VERSION }}-ia32.nsis.7z,
|
||||||
Bitwarden-${{ env.PKG_VERSION }}-ia32.nsis.7z,
|
artifacts/Bitwarden-${{ env.PKG_VERSION }}-x64-store.appx,
|
||||||
Bitwarden-${{ env.PKG_VERSION }}-x64-store.appx,
|
artifacts/Bitwarden-${{ env.PKG_VERSION }}-x64.appx,
|
||||||
Bitwarden-${{ env.PKG_VERSION }}-x64.appx,
|
artifacts/Bitwarden-${{ env.PKG_VERSION }}-x64.nsis.7z,
|
||||||
Bitwarden-${{ env.PKG_VERSION }}-x64.nsis.7z,
|
artifacts/Bitwarden-${{ env.PKG_VERSION }}-arm64-store.appx,
|
||||||
Bitwarden-${{ env.PKG_VERSION }}-arm64-store.appx,
|
artifacts/Bitwarden-${{ env.PKG_VERSION }}-arm64.appx,
|
||||||
Bitwarden-${{ env.PKG_VERSION }}-arm64.appx,
|
artifacts/Bitwarden-${{ env.PKG_VERSION }}-arm64.nsis.7z,
|
||||||
Bitwarden-${{ env.PKG_VERSION }}-arm64.nsis.7z,
|
artifacts/bitwarden.${{ env.PKG_VERSION }}.nupkg,
|
||||||
bitwarden.${{ env.PKG_VERSION }}.nupkg,
|
artifacts/Bitwarden-${{ env.PKG_VERSION }}-universal-mac.zip,
|
||||||
latest.yml,
|
artifacts/Bitwarden-${{ env.PKG_VERSION }}-universal.dmg,
|
||||||
Bitwarden-${{ env.PKG_VERSION }}-universal-mac.zip,
|
artifacts/Bitwarden-${{ env.PKG_VERSION }}-universal.dmg.blockmap,
|
||||||
Bitwarden-${{ env.PKG_VERSION }}-universal.dmg,
|
artifacts/Bitwarden-${{ env.PKG_VERSION }}-universal.pkg.archive"
|
||||||
Bitwarden-${{ env.PKG_VERSION }}-universal.dmg.blockmap,
|
|
||||||
latest-mac.yml,
|
|
||||||
Bitwarden-${{ env.PKG_VERSION }}-universal.pkg.archive"
|
|
||||||
commit: ${{ github.sha }}
|
commit: ${{ github.sha }}
|
||||||
tag: v${{ env.PKG_VERSION }}
|
tag: v${{ env.PKG_VERSION }}
|
||||||
name: Version ${{ env.PKG_VERSION }}
|
name: Version ${{ env.PKG_VERSION }}
|
||||||
|
|
Loading…
Reference in New Issue