Skip to content

Commit

Permalink
adjust github workflow for multi-package repository
Browse files Browse the repository at this point in the history
  • Loading branch information
KtorZ committed Jul 8, 2020
1 parent 7ee8178 commit e8d546c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ jobs:
id: variables
run: |
echo ::set-output name=tag::${GITHUB_REF/refs\/tags\//}
echo ::set-output name=pkg_name::$(cat *.cabal | grep "name:" | sed "s/name:\s*\(.*\)/\1/")
- name: 🐧 Download Artifact (linux)
if: matrix.os == 'ubuntu-latest'
Expand All @@ -96,10 +95,10 @@ jobs:
- name: 📦 Package Artifacts
run: |
mv ubuntu-latest-exe bin
tar czf $PKG_NAME-$TAG-linux64.tar.gz README.md LICENSE NOTICE bin/*
tar czf $PKG_NAME-$TAG-linux64.tar.gz README.md bech32/LICENSE bin/*
rm -rf bin
env:
PKG_NAME: ${{ steps.variables.outputs.pkg_name }}
PKG_NAME: bech32
TAG: ${{ steps.variables.outputs.tag }}

- name: 🚀 Release
Expand All @@ -108,9 +107,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DRAFT_RELEASE: "true"
PRE_RELEASE: "false"
CHANGELOG_FILE: "ChangeLog.md"
CHANGELOG_FILE: "bech32/ChangeLog.md"
ALLOW_EMPTY_CHANGELOG: "false"
ALLOW_TAG_PREFIX: "true"
with:
args: |
${{ steps.variables.outputs.pkg_name }}-${{ steps.variables.outputs.tag }}-linux64.tar.gz
bech32-${{ steps.variables.outputs.tag }}-linux64.tar.gz

0 comments on commit e8d546c

Please sign in to comment.