Skip to content

Commit

Permalink
Change release naming
Browse files Browse the repository at this point in the history
  • Loading branch information
njibhu committed Mar 16, 2021
1 parent 416662a commit 0cec9f6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/push-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
uses: actions/setup-node@v2-beta
with:
node-version: 12
- run: git status; echo $(git describe --abbrev=0 origin/master); exit 1
- name: Install root packages
run: npm install
- name: Generate library
Expand Down Expand Up @@ -52,14 +53,19 @@ jobs:
build_dir: pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: ReleaseName
id: ReleaseName
run: |
git fetch origin master;
echo "::set-output name=release::$(git describe --abbrev=0 origin/master)-$(echo ${GITHUB_SHA} | cut -c1-8)"
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: r-${{ github.sha }}
release_name: Release ${{ github.sha }}
tag_name: ${{ steps.ReleaseName.outputs.release }}
release_name: Release ${{ steps.ReleaseName.outputs.release }}
draft: false
prerelease: false
body: This is an automated release from master. Builds are in the build-artifacts.zip
Expand Down

0 comments on commit 0cec9f6

Please sign in to comment.