Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upload release asset to draft #22

Merged
merged 1 commit into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Cargo home
id: cargo-home
run: echo "path=${CARGO_HOME:-~/.cargo}" >>"$GITHUB_OUTPUT"
- uses: actions/cache@v4
with:
path: |
target
${{ steps.cargo-home.outputs.path }}
key: cargo-${{ hashFiles('**/Cargo.toml') }}

- name: Release test for develop server
run: cargo test --release --manifest-path dev/server/Cargo.toml
Expand Down Expand Up @@ -69,15 +78,37 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Cargo home
id: cargo-home
run: echo "path=${CARGO_HOME:-~/.cargo}" >>"$GITHUB_OUTPUT"
- uses: actions/cache@v4
with:
path: |
target
${{ steps.cargo-home.outputs.path }}
key: cargo-${{ hashFiles('**/Cargo.toml') }}
- name: Release build
run: cargo build --release --features=cli
- name: Push tag
run: |
git tag ${{ needs.build.outputs.expected-git-tag }}
git push origin ${{ needs.build.outputs.expected-git-tag }}
- name: Release draft
id: create-release
uses: actions/create-release@v1 # archived
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ needs.build.outputs.expected-git-tag }}
release_name: ${{ needs.build.outputs.expected-git-tag }}
draft: true
- name: Upload Release Asset
uses: actions/upload-release-asset@v1 # archived
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create-release.outputs.upload_url }}
asset_path: ./target/release/relentless
asset_name: relentless
asset_content_type: application/octet-stream
27 changes: 0 additions & 27 deletions .github/workflows/release.yml

This file was deleted.