tesing the PKG_VERSION
This commit is contained in:
parent
b73f01d529
commit
1e577eb43c
|
@ -6,14 +6,48 @@ on:
|
||||||
- prereleased
|
- prereleased
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
setup:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
package_version: ${{ steps.get_pkg_version.outputs.package_version }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repo
|
- name: Checkout Repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Get package version
|
||||||
|
id: get_pkg_version
|
||||||
|
run: |
|
||||||
|
TAG_VERSION=$(echo ${{ github.ref }} | cut -d "/" -f 3)
|
||||||
|
PKG_VERSION=${TAG_VERSION:1}
|
||||||
|
|
||||||
|
echo "PKG_VERSION=$PKG_VERSION"
|
||||||
|
|
||||||
|
|
||||||
|
linux:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: false
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install Snap
|
||||||
|
uses: samuelmeuli/action-snapcraft@v1
|
||||||
|
#with:
|
||||||
|
# snapcraft_token: ${{ secrets.SNAP_TOKEN }}
|
||||||
|
|
||||||
|
#- name: Get snap release asset
|
||||||
|
# uses: dsaltares/fetch-gh-release-asset@master
|
||||||
|
# with:
|
||||||
|
# version: ${{ github.ref }}
|
||||||
|
# file:
|
||||||
|
|
||||||
- name: testing
|
- name: testing
|
||||||
run: |
|
run: |
|
||||||
echo ${{ github.ref }}
|
echo ${{ github.ref }}
|
||||||
echo ${{ github.event.GITHUB_REF }}
|
echo ${{ github.event.GITHUB_REF }}
|
||||||
|
|
||||||
|
#- name: Deploy to Snap Store
|
||||||
|
# run: |
|
||||||
|
# snapcraft upload dist/bitwarden_${{ env.PACKAGE_VERSION }}_amd64.snap --release stable
|
||||||
|
# snapcraft logout
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue