Skip to content

Commit

Permalink
fix: test github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
JadlionHD committed Sep 5, 2024
1 parent 8778160 commit 6c34620
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Build and Release React App

on:
push:
tags:
- "v*.*.*" # Trigger workflow on new version tags, e.g., v1.0.0
release:
types: [published]

jobs:
build:
Expand All @@ -27,23 +26,12 @@ jobs:
- name: Compress build files
run: zip -r build.zip build

- 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 }}
draft: false
prerelease: false

- name: Upload ZIP to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./build.zip
asset_name: build.zip
asset_content_type: application/zip

0 comments on commit 6c34620

Please sign in to comment.