TheDoctor0 / zip-release

GitHub action that can be used to create release zip archive.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This action can't auto upload to Artifact

wherewhere opened this issue · comments

This action can't auto upload to Artifact. We can use Upload-Artifact to upload the zip. But it is not convenient. Hope author can add this feature.
My code:

name: Create Archive
on: [push]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: Archive Release
      uses: TheDoctor0/zip-release@0.4.1
      with:
        filename: 'release.zip'
        exclusions: '*.git* /*node_modules/* .editorconfig'
        type: 'zip'
    - uses: actions/upload-artifact@v2
      with:
        name: my-artifact
        path: ./release.zip

Hi.
By design, this action is supposed to just provide an option to create an archive of any files and do it well.
If you want to upload the created archive, you should create a pipeline by using other actions - just like you did with actions/upload-artifacts. This is even mentioned in README.