mirror of
https://github.com/Mibew/simple-icons.git
synced 2025-05-02 09:06:43 +03:00
Synchronize workflow with 'simple-icons-font' repo (#4408)
This commit is contained in:
parent
bcfcab934f
commit
6379ae7022
8
.github/workflows/publish.yml
vendored
8
.github/workflows/publish.yml
vendored
@ -52,22 +52,20 @@ jobs:
|
|||||||
RELEASE_BODY=$(echo '${{ steps.commit.outputs.git-message }}' | tail -n $(expr $(echo '${{ steps.commit.outputs.git-message }}' | wc -l) - 1))
|
RELEASE_BODY=$(echo '${{ steps.commit.outputs.git-message }}' | tail -n $(expr $(echo '${{ steps.commit.outputs.git-message }}' | wc -l) - 1))
|
||||||
echo "::set-output name=body::$RELEASE_BODY"
|
echo "::set-output name=body::$RELEASE_BODY"
|
||||||
- name: Get release version
|
- name: Get release version
|
||||||
id: get_version
|
id: get-version
|
||||||
run: |
|
run: |
|
||||||
export PACKAGE_VERSION=$(cat package.json | grep 'version' | sed 's/[ \",:]//g' | sed 's/version//')
|
export PACKAGE_VERSION=$(cat package.json | grep 'version' | sed 's/[ \",:]//g' | sed 's/version//')
|
||||||
echo "::set-output name=version::$PACKAGE_VERSION"
|
echo "::set-output name=version::$PACKAGE_VERSION"
|
||||||
- name: Create and push git tag
|
- name: Create and push git tag
|
||||||
uses: actions-ecosystem/action-push-tag@v1
|
uses: actions-ecosystem/action-push-tag@v1
|
||||||
with:
|
with:
|
||||||
tag: ${{ steps.get_version.outputs.version }}
|
tag: ${{ steps.get-version.outputs.version }}
|
||||||
message: ${{ steps.commit.outputs.git-message }}
|
message: ${{ steps.commit.outputs.git-message }}
|
||||||
- name: Create release
|
- name: Create release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ steps.get_version.outputs.version }}
|
tag_name: ${{ steps.get-version.outputs.version }}
|
||||||
release_name: ${{ steps.release.outputs.title }}
|
release_name: ${{ steps.release.outputs.title }}
|
||||||
body: ${{ steps.release.outputs.body }}
|
body: ${{ steps.release.outputs.body }}
|
||||||
draft: false
|
|
||||||
prerelease: false
|
|
||||||
|
Loading…
Reference in New Issue
Block a user