Skip to content

Commit 83a728e

Browse files
authored
try harder at releases
1 parent 9a25fe0 commit 83a728e

File tree

1 file changed

+24
-17
lines changed

1 file changed

+24
-17
lines changed

.github/workflows/build.yaml

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,29 @@ jobs:
2222
- run: npm install
2323
- run: npm run build
2424

25-
# - name: Create Release
26-
# uses: rymndhng/release-on-push-action@master
27-
# with:
28-
# bump_version_scheme: minor
29-
# use-github-release-notes: true
30-
# env:
31-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
- name: Create Release
26+
uses: rymndhng/release-on-push-action@master
27+
with:
28+
bump_version_scheme: minor
29+
use-github-release-notes: true
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
33+
- name: Tar build
34+
run: tar cvfz build.tar.gz ./dist
35+
36+
- name: Upload Build Asset
37+
uses: actions/upload-release-asset@v1
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
with:
41+
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
42+
asset_path: ./build.tar.gz
43+
asset_name: build.tar.gz
44+
asset_content_type: application/tar+gzip
3245

33-
# - uses: AButler/[email protected]
46+
# - name: Upload artifacts
47+
# uses: actions/upload-artifact@v4
3448
# with:
35-
# files: "dist/*"
36-
# repo-token: ${{ secrets.GITHUB_TOKEN }}
37-
# release-tag: ${{ github.ref_name }}
38-
39-
- name: Upload artifacts
40-
uses: actions/upload-artifact@v4
41-
with:
42-
name: production-files
43-
path: ./dist
49+
# name: production-files
50+
# path: ./dist

0 commit comments

Comments
 (0)