Angular build not compiled correctly

I am using GitHub actions to create a release build when a tag gets pushed. However, once it runs and I check the releases tab it hasn’t created the release correctly. Normally when you run ng build --prod it compiles all of your code into a few files reducing the file size massively. When I download the project from the releases tab it’s just normal like I would view it in a file explorer.

This is my workflow yaml file:

name: dev-release




      - v*



    name: setup environment

    runs-on: ubuntu-latest



        node-version: [12.x]


      - uses: actions/checkout@v2


          fetch-depth: 0

      - name: Cache node modules

        uses: actions/cache@v2.1.3


          path: ~/.npm

          key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}

          restore-keys: |

            ${{ runner.os }}-node-

      - name: Node ${{ matrix.node-version }}

        uses: actions/setup-node@v1.4.4


          node-version: ${{ matrix.node-version }}

      - name: npm install

        run: |

          npm i

          npm run build:ci

      - name: Create Release

        uses: ncipollo/release-action@v1


          token: ${{ secrets.TOKEN }}

          draft: true

Just to clarify, when you look at the release once this action workflow has run, what exactly are you downloading? Are you clicking on the “Source code (zip)” link?

From a quick glance over the documentation for ncipollo/release-action it seems like this action creates a release on GitHub but doesn’t automatically add any artifacts to download. You’ll likely need to add a step that zips your compiled application’s folder and attach it to the release using the artifact input on the release step.

I ended up adding a step to zip up the build files so now when I go into the release section on github I have two source code zips and the build files.