Skip to content

Commit

Permalink
ci: only run pipeline when pushing tag && use it in release
Browse files Browse the repository at this point in the history
  • Loading branch information
Heikki Ketoharju committed Jan 23, 2024
1 parent e3e6eed commit bd0ea6a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/create-packages.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
name: create-packages
on: [push]
on:
push:
tags:
- 'v*'
env:
GH_TOKEN: ${{ github.token }}
VERSION: ${{ github.ref_name }}
jobs:
build-deb:
runs-on: ubuntu-latest
Expand All @@ -12,4 +16,4 @@ jobs:
- name: create a deb package
run: make build
- name: create a github release
run: gh release create v1.2.3 --generate-notes bin/*.deb
run: gh release create $VERSION --generate-notes bin/*.deb

0 comments on commit bd0ea6a

Please sign in to comment.