Skip to content

Commit

Permalink
Merge pull request #2 from eric9n/main
Browse files Browse the repository at this point in the history
action
  • Loading branch information
eric9n authored Jan 5, 2024
2 parents 88cbe5f + b6ca0c1 commit aa3a83d
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,39 @@ jobs:
- uses: actions/checkout@v4
- name: Build
run: cargo build --release

# Set up the GitHub CLI
- name: Install GitHub CLI
run: |
brew install gh
if: matrix.platform == 'macos-latest'

- name: Install GitHub CLI
run: |
sudo apt install -y gh
if: matrix.platform == 'ubuntu-20.04'

- name: Install GitHub CLI
run: |
choco install gh
if: matrix.platform == 'windows-latest'

# Log in to the GitHub CLI
- name: Login to GitHub CLI
run: echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token

# Create a release
- name: Create Release
id: create_release
run: |
gh release create ${{ github.ref_name }} \
--title "Release ${{ github.ref_name }}" \
--notes "Release notes for ${{ github.ref_name }}" \
--draft
# Upload the built artifact to the release
- name: Upload Release Asset
run: |
gh release upload ${{ github.ref_name }} \
./target/release/ncbi \
--clobber

0 comments on commit aa3a83d

Please sign in to comment.