Skip to content

Commit

Permalink
Set version to step output
Browse files Browse the repository at this point in the history
  • Loading branch information
Riey committed Jan 18, 2021
1 parent 595da9e commit 702b460
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set VER
run: export VER=$(grep '^version =' gtk3/Cargo.toml|head -n1|cut -d\" -f2)
id: version
run: echo "::set-output name=ver::$(grep '^version =' gtk3/Cargo.toml|head -n1|cut -d\" -f2)"
- name: Update apt
run: sudo apt-get update -y
- name: Install packages
Expand Down Expand Up @@ -46,7 +47,7 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/kime.7z
asset_name: kime-${VER}.7z
asset_name: kime-${{ steps.version.outputs.ver }}.7z
asset_content_type: application/x-7z-compressed

- name: Upload deb package
Expand All @@ -55,7 +56,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/deb/kime_${VER}_amd64.deb
asset_name: kime_${VER}_amd64.deb
asset_path: build/deb/kime_${{ steps.version.outputs.ver }}_amd64.deb
asset_name: kime_${{ steps.version.outputs.ver }}_amd64.deb
asset_content_type: application/x-xz

0 comments on commit 702b460

Please sign in to comment.