diff --git a/.github/workflows/push-master.yml b/.github/workflows/push-master.yml index ce9d2958..4a71d1d2 100644 --- a/.github/workflows/push-master.yml +++ b/.github/workflows/push-master.yml @@ -12,6 +12,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Setup Node.js environment uses: actions/setup-node@v2-beta with: @@ -52,14 +54,17 @@ jobs: build_dir: pages env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: ReleaseName + id: ReleaseName + run: echo "::set-output name=release::$(git describe --abbrev=0)-$(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