mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-12 13:48:06 +00:00
(attempt) to automate snap release
This commit is contained in:
parent
9606957a0e
commit
63db5de4e2
34
.github/workflows/snap-release.yml
vendored
Normal file
34
.github/workflows/snap-release.yml
vendored
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
name: Release Docker
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [released]
|
||||||
|
|
||||||
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
buildSnap:
|
||||||
|
environment: snap
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Get the version
|
||||||
|
id: get_version
|
||||||
|
run: echo ::set-output name=VERSION::${GITHUB_REF##*/}
|
||||||
|
|
||||||
|
- name: Update snapcraft version file
|
||||||
|
env:
|
||||||
|
VERSION: ${{ steps.get_version.outputs.VERSION }}
|
||||||
|
uses: mikefarah/yq@master
|
||||||
|
with:
|
||||||
|
cmd: yq -i '.version = strenv(VERSION)' snap/snapcraft.yaml
|
||||||
|
- uses: snapcore/action-build@v1
|
||||||
|
id: build
|
||||||
|
- uses: snapcore/action-publish@v1
|
||||||
|
env:
|
||||||
|
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
|
||||||
|
with:
|
||||||
|
snap: ${{ steps.build.outputs.snap }}
|
||||||
|
release: edge
|
@ -1,5 +1,4 @@
|
|||||||
- update release notes
|
- update release notes
|
||||||
- increment version in version.go
|
|
||||||
- increment version in snapcraft.yaml
|
- increment version in snapcraft.yaml
|
||||||
- make sure local build passes
|
- make sure local build passes
|
||||||
- run ./scripts/copy-docs.sh (and commit the changed in the yq-book branch)
|
- run ./scripts/copy-docs.sh (and commit the changed in the yq-book branch)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name: yq
|
name: yq
|
||||||
version: '4.30.1'
|
version: ''
|
||||||
summary: A lightweight and portable command-line YAML processor
|
summary: A lightweight and portable command-line YAML processor
|
||||||
description: |
|
description: |
|
||||||
The aim of the project is to be the jq or sed of yaml files.
|
The aim of the project is to be the jq or sed of yaml files.
|
||||||
|
Loading…
Reference in New Issue
Block a user