Skip to content

Commit

Permalink
Use gh upload on release creation
Browse files Browse the repository at this point in the history
  • Loading branch information
b100dian committed Dec 2, 2024
1 parent f6bc039 commit 53f6ba1
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/build-release.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: write

strategy:
matrix:
Expand Down Expand Up @@ -51,12 +53,9 @@ jobs:
run: yarn build
- name: Bundle builded data
run: zip release-${{github.head_ref || github.ref_name}}.zip -r ./target/*
- name: Create Release
id: create_release
uses: marvinpinto/action-automatic-releases@latest
if: ${{ github.event_name != 'pull_request'}}
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
title: "Hydrogen-web fork for SFOS"
files: release-${{github.head_ref || github.ref_name}}.zip
- name: Update release
if: startsWith(github.ref, 'refs/tags/')
run: |
gh release upload ${{ github.ref_name }} release-${{github.head_ref || github.ref_name}}.zip --clobber
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 53f6ba1

Please sign in to comment.