-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3905c0b
commit 38b5631
Showing
1 changed file
with
18 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,35 @@ | ||
name: Build and Release | ||
name: Release Workflow | ||
|
||
on: | ||
release: | ||
types: | ||
- created | ||
|
||
concurrency: | ||
group: release_workflow | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
name: Build and Release | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
- uses: dart-lang/setup-dart@v1 | ||
- run: dart pub get | ||
- run: dart compile exe bin/server.dart -o fluffygate | ||
- name: Upload release binaries | ||
uses: alexellis/[email protected] | ||
- name: Package | ||
run: | | ||
mkdir build | ||
mv fluffygate build/fluffygate | ||
cp config.sample.yaml build/config.yaml | ||
tar -czf fluffygate-linux-x86.tar.gz build/ | ||
- name: Upload to release | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
asset_paths: '["./fluffygate"]' | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: fluffygate-linux-x86.tar.gz | ||
asset_name: fluffygate-linux-x86.tar.gz | ||
asset_content_type: application/gzip |