This repository has been archived by the owner on Jan 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vuillemot Florian
committed
Apr 7, 2022
1 parent
1dde13e
commit 3fe7d35
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: release workflow | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'release/**' | ||
|
||
jobs: | ||
release: | ||
name: Release taipy-core Package | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-18.04] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Extract branch tag | ||
shell: bash | ||
run: echo "##[set-output name=tag;]$(echo ${GITHUB_REF#refs/heads/release/})" | ||
id: extract_branch | ||
|
||
- name: Extract commit hash | ||
shell: bash | ||
run: echo "##[set-output name=hash;]$(echo $(git rev-parse HEAD))" | ||
id: extract_hash | ||
|
||
- name: Create/update release and tag | ||
run: | | ||
gh release view ${{ steps.extract_branch.outputs.tag }} && | ||
gh release delete ${{ steps.extract_branch.outputs.tag }} && | ||
git tag -f ${{ steps.extract_branch.outputs.tag }} && | ||
git push -f origin ${{ steps.extract_branch.outputs.tag }}; | ||
gh release create ${{ steps.extract_branch.outputs.tag }} --target ${{ steps.extract_hash.outputs.hash }} --notes "Release created using Github Workflows" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |