Răsfoiți Sursa

Release v1.0.0

Vuillemot Florian 3 ani în urmă
părinte
comite
06ceaab396
1 a modificat fișierele cu 39 adăugiri și 0 ștergeri
  1. 39 0
      .github/workflows/release.yml

+ 39 - 0
.github/workflows/release.yml

@@ -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 }}