diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 140b541..4b9bb3a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -22,38 +22,29 @@ jobs: - run: npm install - run: npm run build + - name: Tar build + run: tar cvfz build.tar.gz dist + + - name: Make release + uses: ncipollo/release-action@v1 + with: + artifacts: "build.tar.gz" + # - name: Create Release # id: create_release - # uses: rymndhng/release-on-push-action@master - # with: - # bump_version_scheme: minor + # uses: actions/create-release@v1 # env: # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # with: + # tag_name: ${{ github.ref }} + # release_name: Release ${{ github.ref }} - - 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 }} - - - name: Tar build - run: tar cvfz build.tar.gz ./dist - - - name: Upload Build Asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps - asset_path: ./build.tar.gz - asset_name: build.tar.gz - asset_content_type: application/tar+gzip - - # - name: Upload artifacts - # uses: actions/upload-artifact@v4 + # - name: Upload Build Asset + # uses: actions/upload-release-asset@v1 + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # with: - # name: production-files - # path: ./dist + # upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps + # asset_path: ./build.tar.gz + # asset_name: build.tar.gz + # asset_content_type: application/tar+gzip