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 7e75ca8 commit 0d0fcf4
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,12 @@ on:
tags:
- v[0-9]+.*


defaults:
run:
shell: bash --noprofile --norc -CeEuo pipefail {0}

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

strategy:
matrix:
include:
Expand All @@ -42,13 +32,21 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: create-gh-release
if: matrix.target == 'x86_64-unknown-linux-musl'
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 0d0fcf4

Please sign in to comment.