mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +00:00
fixing snap release
This commit is contained in:
parent
762f46ed54
commit
b6ad314dbb
42
.github/workflows/snap-release.yml
vendored
42
.github/workflows/snap-release.yml
vendored
@ -9,26 +9,26 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
buildSnap:
|
buildSnap:
|
||||||
environment: snap
|
environment: snap
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Get the version
|
- name: Get the version
|
||||||
id: get_version
|
id: get_version
|
||||||
run: echo ::set-output name=VERSION::${GITHUB_REF##*/}
|
run: echo ::set-output name=VERSION::${GITHUB_REF##*/}
|
||||||
|
|
||||||
- name: Update snapcraft version file
|
- name: Update snapcraft version file
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ steps.get_version.outputs.VERSION }}
|
VERSION: ${{ steps.get_version.outputs.VERSION }}
|
||||||
uses: mikefarah/yq@master
|
uses: mikefarah/yq@master
|
||||||
with:
|
with:
|
||||||
cmd: yq -i '.version = strenv(VERSION)' snap/snapcraft.yaml
|
cmd: yq -i '.version = strenv(VERSION)' snap/snapcraft.yaml
|
||||||
- uses: snapcore/action-build@v1
|
- uses: snapcore/action-build@v1
|
||||||
id: build
|
id: build
|
||||||
- uses: snapcore/action-publish@v1
|
- uses: snapcore/action-publish@v1
|
||||||
env:
|
env:
|
||||||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
|
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
|
||||||
with:
|
with:
|
||||||
snap: ${{ steps.build.outputs.snap }}
|
snap: ${{ steps.build.outputs.snap }}
|
||||||
release: edge
|
release: edge
|
Loading…
Reference in New Issue
Block a user