Skip to content

Commit

Permalink
test versioned zip release
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Gloeckler committed Jun 29, 2022
1 parent 4f143ae commit fb61a0e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,29 +30,31 @@ jobs:
- run: npm ci
- run: npm run build

- name: Upload artifact
- name: Upload artifact (directory)
uses: actions/upload-artifact@v2
with:
name: ${{ env.ARTIFACT_NAME }}
path: '${{ env.DIST_PATH }}'
if-no-files-found: error

- name: Zip artifact for release
uses: thedoctor0/zip-release@master
with:
type: 'zip'
directory: ${{ env.DIST_PATH }}
path: '.'
filename: ${{ env.ARTIFACT_NAME }}-${{ env.MODULE_VERSION }}.zip
filename: ../${{ env.ARTIFACT_NAME }}-${{ env.MODULE_VERSION }}.zip

- name: list directory
run: |
ls -lR
ls -l
- name: Upload artifact
- name: Upload artifact (zip file)
uses: actions/upload-artifact@v2
with:
name: ${{ env.ARTIFACT_NAME }}-${{ env.MODULE_VERSION }}.zip
path: '${{ env.DIST_PATH }}'
path: ${{ env.ARTIFACT_NAME }}-${{ env.MODULE_VERSION }}.zip
if-no-files-found: error

- name: Create release
uses: ncipollo/release-action@v1
Expand Down

0 comments on commit fb61a0e

Please sign in to comment.