Skip to content

Commit

Permalink
work on ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
aeltorio committed Jun 15, 2024
1 parent a965f72 commit 522032d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,19 +160,30 @@ jobs:
- name: Publish CI binary (${{ matrix.target }})
continue-on-error: true
run: |
zip -r /tmp/${{ matrix.os }}_ci_${{ matrix.target }}.zip target/${{ matrix.target }}/release/sctgdesk-api-server
zip -r /tmp/${{ matrix.os }}_${{ matrix.target }}_${{ github.event.release.tag_name }}.zip target/${{ matrix.target }}/release/sctgdesk-api-server
- name: Upload Release Assets binaries for ${{ matrix.os }} ${{ matrix.target }}
uses: softprops/action-gh-release@v2
continue-on-error: true
with:
draft: true
tag_name: nightly
files: |
/tmp/${{ matrix.os }}_ci_${{ matrix.target }}.zip
/tmp/${{ matrix.os }}_${{ matrix.target }}_${{ github.event.release.tag_name }}.zip
docs/openapi3.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


- name: Upload Release Assets binaries for Macos amd64
uses: softprops/action-gh-release@v2
continue-on-error: true
with:
files: |
/tmp/${{ matrix.os }}_${{ matrix.target }}_${{ github.event.release.tag_name }}.zip
docs/openapi3.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Commit and push to GitHub
continue-on-error: true
run: |
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
run: |
DATABASE_URL=sqlite://$(pwd)/db_v2.sqlite3 cargo build --release
cd target/release
zip -r /tmp/ubuntu_amd64.zip sctgdesk-api-server
zip -r /tmp/ubuntu_amd64_${{ github.event.release.tag_name }}.zip sctgdesk-api-server
- name: Upload artifact
uses: actions/upload-artifact@v4
Expand All @@ -60,6 +60,15 @@ jobs:
path: |
target/release/sctgdesk-api-server
- name: Upload Release Assets binaries for Macos amd64
uses: softprops/action-gh-release@v2
continue-on-error: true
with:
files: |
/tmp/ubuntu_amd64_${{ github.event.release.tag_name }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload Release Assets binaries for ubuntu_amd64
uses: softprops/action-gh-release@v2
continue-on-error: true
Expand Down

0 comments on commit 522032d

Please sign in to comment.