From 83a728e692b745debac01698229915aaf72f835b Mon Sep 17 00:00:00 2001 From: bpcreech <35012922+bpcreech@users.noreply.github.com> Date: Sun, 4 Feb 2024 17:52:38 -0500 Subject: [PATCH] try harder at releases --- .github/workflows/build.yaml | 41 +++++++++++++++++++++--------------- 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index de0c563..4c8fe97 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -22,22 +22,29 @@ jobs: - run: npm install - run: npm run build - # - name: Create Release - # uses: rymndhng/release-on-push-action@master - # with: - # bump_version_scheme: minor - # use-github-release-notes: true - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Create Release + uses: rymndhng/release-on-push-action@master + with: + bump_version_scheme: minor + use-github-release-notes: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - 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 - # - uses: AButler/upload-release-assets@v3.0 + # - name: Upload artifacts + # uses: actions/upload-artifact@v4 # with: - # files: "dist/*" - # repo-token: ${{ secrets.GITHUB_TOKEN }} - # release-tag: ${{ github.ref_name }} - - - name: Upload artifacts - uses: actions/upload-artifact@v4 - with: - name: production-files - path: ./dist + # name: production-files + # path: ./dist