From 9f1588ce99e237156860d38588b23702e4eec43c Mon Sep 17 00:00:00 2001 From: LeChatP Date: Tue, 10 Sep 2024 10:28:35 +0200 Subject: [PATCH] chore: Update pkg.yml to trigger workflow on tag push and branch 'reorganisation' --- .github/workflows/pkg.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pkg.yml b/.github/workflows/pkg.yml index baf7eda..1398d25 100644 --- a/.github/workflows/pkg.yml +++ b/.github/workflows/pkg.yml @@ -3,8 +3,10 @@ name: Deploy pkg to GitHub Packages ## never trigger this workflow automatically on: push: + tags: + - 'v*.*.*' branches: - - no-trigger + - 'reorganisation' jobs: deploy: @@ -27,7 +29,12 @@ jobs: - name: Install Dependencies run: cargo xtask dependencies -dip sudo - - name: Build + - name: Build deb and rpm packages run: cargo xtask deploy debian redhat + - name: Publish to GitHub Packages + run: cargo publish --manifest-path xtask/Cargo.toml --token ${{ secrets.GITHUB_TOKEN }} + when: # only publish if the tag is a release + startsWith: ${{ github.ref }} # this is the tag name + value: 'refs/tags/v' \ No newline at end of file