Skip to content

Commit

Permalink
try ncipollo/release-action@v1
Browse files Browse the repository at this point in the history
  • Loading branch information
bpcreech authored Feb 4, 2024
1 parent d11309d commit a5a10c0
Showing 1 changed file with 20 additions and 29 deletions.
49 changes: 20 additions & 29 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a5a10c0

Please sign in to comment.