Skip to content

Commit

Permalink
ci: add artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaoboy committed Oct 15, 2024
1 parent 6dca567 commit 0499818
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ defaults:

jobs:
upload-assets:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: taiki-e/create-gh-release-action@v1
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
token: ${{ secrets.GITHUB_TOKEN }}

strategy:
matrix:
include:
Expand All @@ -32,21 +41,13 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: create-gh-release
if: matrix.target == 'x86_64-unknown-linux-musl' && startsWith(github.ref, 'refs/tags/')
uses: taiki-e/create-gh-release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

- uses: taiki-e/upload-rust-binary-action@v1
with:
dry-run: ${{ !startsWith(github.ref, 'refs/tags/') }}
# dry-run: true
bin: ansi2
target: ${{ matrix.target }}
token: ${{ secrets.GITHUB_TOKEN }}
ref: refs/tags/dummy
# ref: ${{ startsWith(github.ref, 'refs/tags/') && github.event_name == 'push' ? github.ref : 'refs/tags/dummy' }}
features: cli
env:
RUSTFLAGS: ${{ matrix.RUSTFLAGS }}
Expand Down

0 comments on commit 0499818

Please sign in to comment.