Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

Commit

Permalink
Release github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Vuillemot Florian committed Apr 7, 2022
1 parent 1dde13e commit 3fe7d35
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
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 }}

0 comments on commit 3fe7d35

Please sign in to comment.