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