Skip to content

Commit

Permalink
extract tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ipcjs committed Mar 26, 2022
1 parent 26572c0 commit d1f522c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,19 @@ jobs:
- name: Build
run: make zhwiki.dict zhwiki.dict.yaml

- name: Extract tag name
id: tag
run: |
version_line=$(cat Makefile | grep 'VERSION=' -m 1)
echo "::set-output name=result::${version_line#VERSION=}"
- name: Release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: "zhwiki.dict,zhwiki.dict.yaml"
commit: ${{ github.sha }}
tag: ${{ steps.tag.outputs.result }}



0 comments on commit d1f522c

Please sign in to comment.