Skip to content

Commit

Permalink
update ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
aeltorio committed Jun 15, 2024
1 parent b2c797b commit a965f72
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/macos-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,16 @@ jobs:
with:
files: |
/tmp/macos_${{ matrix.job.arch }}_${{ github.event.release.tag_name }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload Release Assets binaries for macos_${{ matrix.job.arch }}
uses: softprops/action-gh-release@v2
continue-on-error: true
with:
draft: true
tag_name: nightly
files: |
/tmp/macos_${{ matrix.job.arch }}_${{ github.event.release.tag_name }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15 changes: 14 additions & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,23 @@ jobs:
- name: Build project
run: |
DATABASE_URL=sqlite://$(pwd)/db_v2.sqlite3 cargo build --release
cd target/release
zip -r /tmp/ubuntu_amd64.zip sctgdesk-api-server
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ubuntu_amd64
path: |
target/release/sctgdesk-api-server
target/release/sctgdesk-api-server
- name: Upload Release Assets binaries for ubuntu_amd64
uses: softprops/action-gh-release@v2
continue-on-error: true
with:
draft: true
tag_name: nightly
files: |
/tmp/ubuntu_amd64.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13 changes: 12 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,15 @@ jobs:
with:
name: windows_${{ matrix.job.arch }}
path: |
target/${{ matrix.job.arch }}-pc-windows-msvc/release/sctgdesk-api-server.exe
target/${{ matrix.job.arch }}-pc-windows-msvc/release/sctgdesk-api-server.exe
- name: Upload Release Assets binaries for windows
uses: softprops/action-gh-release@v2
continue-on-error: true
with:
draft: true
tag_name: nightly
files: |
/tmp/windows_${{ matrix.job.arch }}_${{ github.event.release.tag_name }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a965f72

Please sign in to comment.