Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
WriteNaN authored Apr 3, 2024
1 parent a3aa244 commit 0085538
Showing 1 changed file with 0 additions and 47 deletions.
47 changes: 0 additions & 47 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1 @@
name: Create Release

on:
pull_request:
branches:
- main

jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Bun
uses: oven-sh/setup-bun@v1

- name: Install Bun dependencies
run: bun install

- name: Export project using Bun
run: bun export

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

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Changes in this Release
- First Change
- Second Change
draft: false
prerelease: false

0 comments on commit 0085538

Please sign in to comment.