mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
adding PACKAGE_VERSION to the environment
This commit is contained in:
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@@ -201,6 +201,7 @@ jobs:
|
|||||||
#- name: Publish
|
#- name: Publish
|
||||||
# run: |
|
# run: |
|
||||||
# .\scripts\choco-update.ps1 -version $env:PACKAGE_VERSION
|
# .\scripts\choco-update.ps1 -version $env:PACKAGE_VERSION
|
||||||
|
Get-ChildItem dist
|
||||||
|
|
||||||
- name: Publish
|
- name: Publish
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
@@ -222,6 +223,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
Get-ChildItem dist
|
||||||
|
Get-ChildItem dist
|
||||||
|
|
||||||
- name: Set PACKAGE_VERSION
|
- name: Set PACKAGE_VERSION
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
@@ -240,11 +243,12 @@ jobs:
|
|||||||
snapcraft --version
|
snapcraft --version
|
||||||
echo "GitHub ref: $GITHUB_REF"
|
echo "GitHub ref: $GITHUB_REF"
|
||||||
echo "GitHub event: $GITHUB_EVENT"
|
echo "GitHub event: $GITHUB_EVENT"
|
||||||
|
echo "BW Package Version: $PACKAGE_VERSION"
|
||||||
env:
|
env:
|
||||||
GITHUB_REF: ${{ github.ref }}
|
GITHUB_REF: ${{ github.ref }}
|
||||||
GITHUB_EVENT: ${{ github.event_name }}
|
GITHUB_EVENT: ${{ github.event_name }}
|
||||||
|
|
||||||
- name: Install Snap
|
- name: Build Snap Package
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
#./scripts/snap-build.ps1 -version $env:PACKAGE_VERSION
|
#./scripts/snap-build.ps1 -version $env:PACKAGE_VERSION
|
||||||
@@ -255,7 +259,7 @@ jobs:
|
|||||||
Get-ChildItem dist
|
Get-ChildItem dist
|
||||||
Get-ChildItem dist\snap
|
Get-ChildItem dist\snap
|
||||||
|
|
||||||
(Get-Content dist\snap\snapcraft.yaml).replace('__version__', ${{ env.PACKAGE_VERSION }}) | Set-Content dist\snap\snapcraft.yaml
|
(Get-Content dist\snap\snapcraft.yaml).replace('__version__', $env:PACKAGE_VERSION) | Set-Content dist\snap\snapcraft.yaml
|
||||||
|
|
||||||
cd dist\snap
|
cd dist\snap
|
||||||
Get-ChildItem
|
Get-ChildItem
|
||||||
|
|||||||
Reference in New Issue
Block a user