Skip to content

Commit

Permalink
try harder at releases
Browse files Browse the repository at this point in the history
  • Loading branch information
bpcreech authored Feb 4, 2024
1 parent 9a25fe0 commit 83a728e
Showing 1 changed file with 24 additions and 17 deletions.
41 changes: 24 additions & 17 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
# - 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

0 comments on commit 83a728e

Please sign in to comment.