Skip to content

Commit

Permalink
Update GitHub pages after release is done (#1162)
Browse files Browse the repository at this point in the history
* Update GitHub pages after release is done

Signed-off-by: Anatolii Bazko <[email protected]>
  • Loading branch information
tolusha authored Apr 2, 2021
1 parent a2c8297 commit 4e59edd
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/release-build-and-push-to-GH-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run: |
if [[ ${GITHUB_REF#refs/heads/} =~ 7.* ]];
then
echo "::set-output name=chectl_version::$(cat VERSION)"
echo "::set-output name=chectl_version::$(cat VERSION)"
echo "::set-output name=gh_release_name::$(cat VERSION)"
echo "::set-output name=gh_tag::$(cat VERSION)"
fi
Expand All @@ -53,12 +53,20 @@ jobs:
sed -i "s#version\":\ \"\(.*\)\",#version\":\ \"${{ steps.TAG_UTIL.outputs.chectl_version }}\",#g" package.json
sed -i "s|INSERT-KEY-HERE|${{ secrets.SEGMENT_WRITE_KEY }}|g" src/hooks/analytics/analytics.ts
git tag ${{ steps.TAG_UTIL.outputs.gh_tag }}
TARGETS=linux-arm,linux-x64,linux-s390x,linux-ppc64le,darwin-x64,win32-x64,win32-x86
npx oclif-dev pack --targets=$TARGETS
- name: Create Release and push artifacts
uses: softprops/action-gh-release@v1
with:
name: ${{ steps.TAG_UTIL.outputs.gh_release_name }}
tag_name: ${{ steps.TAG_UTIL.outputs.gh_tag }}
files: "./dist/channels/**/chectl-*.gz"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update github pages
run: |
git clone https://github.com/che-incubator/chectl -b gh-pages --single-branch gh-pages
rm -rf gh-pages/.git
echo $(date +%s) > gh-pages/update
Expand All @@ -70,11 +78,3 @@ jobs:
BRANCH: gh-pages
FOLDER: gh-pages
CLEAN: true # Automatically remove deleted files from the deploy branch
- name: Create Release and push artifacts
uses: softprops/action-gh-release@v1
with:
name: ${{ steps.TAG_UTIL.outputs.gh_release_name }}
tag_name: ${{ steps.TAG_UTIL.outputs.gh_tag }}
files: "./dist/channels/**/chectl-*.gz"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4e59edd

Please sign in to comment.