diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 790d8a4..f6676d3 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -20,10 +20,34 @@ steps: - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} + - name: setup npm uses: actions/setup-node@v3 with: - node-version: ${{ matrix.node-version }} + node-version: 16.17.0 cache: 'npm' - - run: npm ci - - run: npm run build + - name: load libaries + run: npm ci + - name: build article files + run: npm run build + - name: create zip + run: (cd build && zip -r ../article.zip .) + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: false + - name: Upload Release Asset + id: upload-release-asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./article.zip + asset_name: article.zip + asset_content_type: application/zip