Skip to content

Commit

Permalink
Merge pull request #2 from WriteNaN/WriteNaN-patch-1
Browse files Browse the repository at this point in the history
Update main.yml
  • Loading branch information
WriteNaN authored Apr 3, 2024
2 parents 0085538 + fe958fc commit ce2732f
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1 +1,48 @@
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
- test
- test
draft: false
prerelease: false

0 comments on commit ce2732f

Please sign in to comment.