Skip to content

Commit

Permalink
chore: Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
PichuChen committed Jul 30, 2024
1 parent 1a09a13 commit 998bd11
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
branches: [ "main" ]

jobs:

build:
runs-on: ubuntu-latest
steps:
Expand All @@ -33,8 +32,6 @@ jobs:
name: serverlet
path: serverlet/serverlet



release:
needs: build
runs-on: ubuntu-latest
Expand Down Expand Up @@ -65,28 +62,13 @@ jobs:
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/PichuChen/hatsuaki/releases/$RELEASE_ID
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: nightly
release_name: Release nightly
body: |
Changes in this Release
- Added new feature
- Fixed a bug
draft: false
prerelease: false

- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
upload_url: https://api.github.com/repos/PichuChen/hatsuaki/releases/$RELEASE_ID/assets?name=serverlet
asset_path: ./serverlet/serverlet
asset_name: serverlet
asset_content_type: application/octet-stream

0 comments on commit 998bd11

Please sign in to comment.