mirror of
https://github.com/bitwarden/desktop.git
synced 2024-11-30 12:54:31 +01:00
Removing the old setup logic that no longer works (#974)
* Removing the old setup logic that no longer works * adding in formatting
This commit is contained in:
parent
2d68fe37a1
commit
1a6f283771
46
.github/workflows/deploy.yml
vendored
46
.github/workflows/deploy.yml
vendored
@ -21,34 +21,27 @@ jobs:
|
|||||||
- name: Create Deploy version vars
|
- name: Create Deploy version vars
|
||||||
id: create_tags
|
id: create_tags
|
||||||
run: |
|
run: |
|
||||||
if ! [[ "${{ github.event_name }}" -eq "release" ]]; then
|
case "${RELEASE_TAG_NAME_INPUT:0:1}" in
|
||||||
case "${RELEASE_TAG_NAME_INPUT:0:1}" in
|
v)
|
||||||
v)
|
echo "RELEASE_NAME=${RELEASE_TAG_NAME_INPUT:1}" >> $GITHUB_ENV
|
||||||
echo "RELEASE_NAME=${RELEASE_TAG_NAME_INPUT:1}" >> $GITHUB_ENV
|
echo "RELEASE_TAG_NAME=$RELEASE_TAG_NAME_INPUT" >> $GITHUB_ENV
|
||||||
echo "RELEASE_TAG_NAME=$RELEASE_TAG_NAME_INPUT" >> $GITHUB_ENV
|
echo "::set-output name=package_version::${RELEASE_TAG_NAME_INPUT:1}"
|
||||||
echo "::set-output name=package_version::${RELEASE_TAG_NAME_INPUT:1}"
|
echo "::set-output name=tag_version::$RELEASE_TAG_NAME_INPUT"
|
||||||
echo "::set-output name=tag_version::$RELEASE_TAG_NAME_INPUT"
|
;;
|
||||||
;;
|
[0-9])
|
||||||
[0-9])
|
echo "RELEASE_NAME=$RELEASE_TAG_NAME_INPUT" >> $GITHUB_ENV
|
||||||
echo "RELEASE_NAME=$RELEASE_TAG_NAME_INPUT" >> $GITHUB_ENV
|
echo "RELEASE_TAG_NAME=v$RELEASE_TAG_NAME_INPUT" >> $GITHUB_ENV
|
||||||
echo "RELEASE_TAG_NAME=v$RELEASE_TAG_NAME_INPUT" >> $GITHUB_ENV
|
echo "::set-output name=package_version::$RELEASE_TAG_NAME_INPUT"
|
||||||
echo "::set-output name=package_version::$RELEASE_TAG_NAME_INPUT"
|
echo "::set-output name=tag_version::v$RELEASE_TAG_NAME_INPUT"
|
||||||
echo "::set-output name=tag_version::v$RELEASE_TAG_NAME_INPUT"
|
;;
|
||||||
;;
|
*)
|
||||||
*)
|
exit 1
|
||||||
exit 1
|
;;
|
||||||
;;
|
esac
|
||||||
esac
|
|
||||||
else
|
|
||||||
TAG_VERSION=$(echo ${{ github.ref }} | cut -d "/" -f 3)
|
|
||||||
PKG_VERSION=${TAG_VERSION:1}
|
|
||||||
|
|
||||||
echo "::set-output name=package_version::$PKG_VERSION"
|
|
||||||
echo "::set-output name=tag_version::$TAG_VERSION"
|
|
||||||
fi
|
|
||||||
env:
|
env:
|
||||||
RELEASE_TAG_NAME_INPUT: ${{ github.event.inputs.release_tag_name_input }}
|
RELEASE_TAG_NAME_INPUT: ${{ github.event.inputs.release_tag_name_input }}
|
||||||
|
|
||||||
|
|
||||||
snap:
|
snap:
|
||||||
name: Deploy Snap
|
name: Deploy Snap
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -84,6 +77,7 @@ jobs:
|
|||||||
snapcraft upload dist/bitwarden_${{ env.PKG_VERSION }}_amd64.snap --release stable
|
snapcraft upload dist/bitwarden_${{ env.PKG_VERSION }}_amd64.snap --release stable
|
||||||
snapcraft logout
|
snapcraft logout
|
||||||
|
|
||||||
|
|
||||||
choco:
|
choco:
|
||||||
name: Deploy Choco
|
name: Deploy Choco
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
@ -126,6 +120,7 @@ jobs:
|
|||||||
cd dist
|
cd dist
|
||||||
choco push
|
choco push
|
||||||
|
|
||||||
|
|
||||||
macos:
|
macos:
|
||||||
name: Deploy MacOS
|
name: Deploy MacOS
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
@ -155,6 +150,7 @@ jobs:
|
|||||||
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
|
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
auto-updater-deploy:
|
auto-updater-deploy:
|
||||||
name: Release auto-updater files
|
name: Release auto-updater files
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
Loading…
Reference in New Issue
Block a user