mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-23 11:56:00 +01:00
changing asset fetch task and updating dependencies
This commit is contained in:
parent
21714b6878
commit
b0075ffbb7
26
.github/workflows/release.yml
vendored
26
.github/workflows/release.yml
vendored
@ -13,6 +13,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
release_upload_url: ${{ steps.create_release.outputs.upload_url }}
|
release_upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
|
package_version: ${{ steps.create_tags.outputs.release_name }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@ -33,6 +34,8 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
echo "::set-output name=package_version::$RELEASE_NAME"
|
||||||
env:
|
env:
|
||||||
RELEASE_TAG_NAME_INPUT: ${{ github.event.inputs.release_tag_name_input }}
|
RELEASE_TAG_NAME_INPUT: ${{ github.event.inputs.release_tag_name_input }}
|
||||||
|
|
||||||
@ -229,16 +232,12 @@ jobs:
|
|||||||
needs:
|
needs:
|
||||||
- setup
|
- setup
|
||||||
- cli
|
- cli
|
||||||
|
env:
|
||||||
|
PACKAGE_VERSION: ${{ needs.setup.outputs.package_version }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set PACKAGE_VERSION
|
|
||||||
shell: pwsh
|
|
||||||
run: |
|
|
||||||
$env:pkgVersion = (Get-Content -Raw -Path ./package.json | ConvertFrom-Json).version
|
|
||||||
echo "PACKAGE_VERSION=$env:pkgVersion" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
|
||||||
|
|
||||||
- name: Install Snapcraft
|
- name: Install Snapcraft
|
||||||
uses: samuelmeuli/action-snapcraft@v1
|
uses: samuelmeuli/action-snapcraft@v1
|
||||||
|
|
||||||
@ -253,11 +252,20 @@ jobs:
|
|||||||
GITHUB_REF: ${{ github.ref }}
|
GITHUB_REF: ${{ github.ref }}
|
||||||
GITHUB_EVENT: ${{ github.event_name }}
|
GITHUB_EVENT: ${{ github.event_name }}
|
||||||
|
|
||||||
- name: Get bw linux cli
|
- name: Get snap release asset
|
||||||
uses: actions/download-artifact@v2
|
uses: dsaltares/fetch-gh-release-asset@0.0.5
|
||||||
with:
|
with:
|
||||||
|
version: tags/${{ env.TAG_VERSION }}
|
||||||
name: bw-linux-${{ env.PACKAGE_VERSION }}.zip
|
name: bw-linux-${{ env.PACKAGE_VERSION }}.zip
|
||||||
path: ./dist/snap
|
env:
|
||||||
|
TAG_VERSION: ${{ needs.setup.outputs.tag_version }}
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: move assets
|
||||||
|
run: |
|
||||||
|
echo "Hopefully this is temporary until release 0.0.6 of the fetch-gh-release-asset is released"
|
||||||
|
mkdir dist
|
||||||
|
mv bw_${{ env.PACKAGE_VERSION }}_amd64.snap -t dist
|
||||||
|
|
||||||
- name: Build Snap Package
|
- name: Build Snap Package
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user