From 733d765047750978bc433328c79cffc18293a9b2 Mon Sep 17 00:00:00 2001 From: Ashraf Teleb Date: Mon, 11 Jul 2022 13:04:13 +0200 Subject: [PATCH] Fixed github release action --- .github/workflows/release.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6160a1e..e2a3ebb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,16 +7,19 @@ jobs: build: runs-on: ubuntu-latest steps: + - name: Set filename + id: vars + run: echo ::set-output name=file_name::drawiowhiteboard${GITHUB_REF##*/}.zip - uses: actions/checkout@master - name: Archive Release uses: thedoctor0/zip-release@main with: type: 'zip' - filename: 'drawiowhiteboard${GITHUB_REF/refs\/tags\//}.zip' + filename: ${{ steps.vars.outputs.file_name }} path: drawiowhiteboard exclusions: '*.git* /*node_modules/* .editorconfig' - name: Upload Release uses: ncipollo/release-action@v1 with: - artifacts: "drawiowhiteboard${GITHUB_REF/refs\/tags\//}.zip" - token: ${{ secrets.GITHUB_TOKEN }} + artifacts: ${{ steps.vars.outputs.file_name }} + token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file