Skip to content

Commit

Permalink
Move invoke task into own workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryAstafyev committed Jan 22, 2024
1 parent ed67816 commit ac41efa
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 19 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: PublishRelease

on:
release:
types: [published]

jobs:
invoke_package_distribution:
name: Invoke chipmunk package creation and distribution for different package managers
needs: build_release
runs-on: ubuntu-latest
steps:
- name: Checkout chipmunk-distribution
uses: actions/checkout@v2
with:
repository: esrlabs/chipmunk-distribution
path: "./chipmunk-distribution"
token: ${{secrets.PUSH_TOKEN}}
- name: Push tag
working-directory: ./chipmunk-distribution
run: |
git config user.name "esrlabs"
git config user.email "[email protected]"
git remote set-url origin "https://esrlabs:${{secrets.PUSH_TOKEN}}@github.com/esrlabs/chipmunk-distribution"
git tag ${{ github.ref_name }}
git push origin ${{ github.ref_name }}
19 changes: 0 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,22 +111,3 @@ jobs:
release-tag: ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
invoke_package_distribution:
name: Invoke chipmunk package creation and distribution for different package managers
needs: build_release
runs-on: ubuntu-latest
steps:
- name: Checkout chipmunk-distribution
uses: actions/checkout@v2
with:
repository: esrlabs/chipmunk-distribution
path: './chipmunk-distribution'
token: ${{secrets.PUSH_TOKEN}}
- name: Push tag
working-directory: ./chipmunk-distribution
run: |
git config user.name "esrlabs"
git config user.email "[email protected]"
git remote set-url origin "https://esrlabs:${{secrets.PUSH_TOKEN}}@github.com/esrlabs/chipmunk-distribution"
git tag ${{ github.ref_name }}
git push origin ${{ github.ref_name }}

0 comments on commit ac41efa

Please sign in to comment.