Skip to content

Commit ac60a51

Browse files
committed
Update post-release.yml
1 parent dc7189e commit ac60a51

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

.github/workflows/post-release.yml

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ name: Release
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
tags:
6+
- "v*.*.*"
67
pull_request:
78
branches: [ "main" ]
89

@@ -41,7 +42,7 @@ jobs:
4142
with:
4243
key: ${{ matrix.target }}
4344

44-
- name: Install Linux dependencies
45+
- name: Install gcc-aarch64-linux-gnu
4546
if: matrix.os == 'ubuntu-latest' && matrix.target == 'aarch64-unknown-linux-gnu'
4647
run: |
4748
sudo apt-get update
@@ -50,5 +51,25 @@ jobs:
5051
- name: Build
5152
run: cargo build -p native --release --target ${{ matrix.target }}
5253

54+
- name: Upload Artifact
55+
uses: actions/upload-artifact@v4
56+
with:
57+
name: cjs-module-lexer-${{ matrix.target }}
58+
path: target/release/native
59+
if-no-files-found: error
60+
61+
release:
62+
needs: build
63+
runs-on: ubuntu-latest
64+
65+
steps:
66+
- name: Checkout
67+
uses: actions/checkout@v4
68+
69+
- name: Download artifact
70+
uses: actions/download-artifact@v4
71+
with:
72+
path: .artifact
73+
5374
- name: List
54-
run: ls target
75+
run: ls .artifact

0 commit comments

Comments
 (0)