Skip to content

Commit

Permalink
Release v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Vuillemot Florian committed Apr 7, 2022
1 parent 908d53d commit 06ceaab
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 06ceaab

Please sign in to comment.