Skip to content

Commit

Permalink
Merge pull request #15 from Anthony-Dong/fhd_dev_0922
Browse files Browse the repository at this point in the history
Fhd dev 0922
  • Loading branch information
Anthony-Dong authored Sep 20, 2024
2 parents d38e275 + a6ff9fb commit 2bb0c5e
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,4 @@ jobs:
- name: Compile-build
run: make build
- name: Test
run: make test
- name: Compress File
run: zip bin/devtool.zip -@ < .github/workflows/devtool.txt
- name: Upload devtool.zip
uses: actions/upload-artifact@master
with:
name: devtool.zip
path: bin/devtool.zip
run: make test
50 changes: 50 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Upload Release Asset

on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

jobs:
build:
name: Upload Release Asset
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.18'
- name: Cache Go modules
id: cache-go-mod
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-1.18
restore-keys: ${{ runner.os }}-go-1.18
- name: Build project
run: |
make cors
make build
zip bin/devtool.zip -@ < .github/workflows/devtool.txt
- name: 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 to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./bin/devtool.zip
asset_name: devtool.zip
asset_content_type: application/zip

0 comments on commit 2bb0c5e

Please sign in to comment.