Skip to content

Commit 63300fc

Browse files
committed
use maintained GH Action for release
1 parent 37ec9e7 commit 63300fc

File tree

1 file changed

+15
-69
lines changed

1 file changed

+15
-69
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -135,74 +135,20 @@ jobs:
135135
run: |
136136
ls -laGiR ./*
137137
138+
- name: Prepare Upload Folder
139+
shell: bash
140+
run: |
141+
mkdir upload
142+
mv artifacts/linux-amd64-${{matrix.llvm_version}}/llvm.tar.xz upload
143+
mv artifacts/linux-aarch64-${{matrix.llvm_version}}/llvm.tar.xz upload
144+
mv artifacts/linux-riscv64-${{matrix.llvm_version}}/llvm.tar.xz upload
145+
mv artifacts/darwin-amd64-${{matrix.llvm_version}}/llvm.tar.xz upload
146+
mv artifacts/darwin-aarch64-${{matrix.llvm_version}}/llvm.tar.xz upload
147+
mv artifacts/windows-amd64-${{matrix.llvm_version}}/llvm.tar.xz upload
148+
138149
- name: Create Release
139-
id: create_release
140-
uses: ncipollo/release-action@v1
141-
env:
142-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
143-
with:
144-
tag: ${{ matrix.llvm_version }}
145-
name: Release ${{ matrix.llvm_version }}
146-
allowUpdates: true
147-
draft: false
148-
prerelease: false
149-
150-
- name: Upload Release Asset Linux
151-
uses: actions/upload-release-asset@v1
152-
env:
153-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
154-
with:
155-
upload_url: ${{ steps.create_release.outputs.upload_url }}
156-
asset_path: artifacts/linux-amd64-${{matrix.llvm_version}}/llvm.tar.xz
157-
asset_name: llvm-linux-amd64.tar.xz
158-
asset_content_type: application/gzip
159-
160-
- name: Upload Release Asset Linux (ARM64)
161-
uses: actions/upload-release-asset@v1
162-
env:
163-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
164-
with:
165-
upload_url: ${{ steps.create_release.outputs.upload_url }}
166-
asset_path: artifacts/linux-aarch64-${{matrix.llvm_version}}/llvm.tar.xz
167-
asset_name: llvm-linux-aarch64.tar.xz
168-
asset_content_type: application/gzip
169-
170-
- name: Upload Release Asset Linux (RISCV64)
171-
uses: actions/upload-release-asset@v1
172-
env:
173-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
174-
with:
175-
upload_url: ${{ steps.create_release.outputs.upload_url }}
176-
asset_path: artifacts/linux-riscv64-${{matrix.llvm_version}}/llvm.tar.xz
177-
asset_name: llvm-linux-riscv64.tar.xz
178-
asset_content_type: application/gzip
179-
180-
- name: Upload Release Asset Darwin
181-
uses: actions/upload-release-asset@v1
182-
env:
183-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
184-
with:
185-
upload_url: ${{ steps.create_release.outputs.upload_url }}
186-
asset_path: artifacts/darwin-amd64-${{matrix.llvm_version}}/llvm.tar.xz
187-
asset_name: llvm-darwin-amd64.tar.xz
188-
asset_content_type: application/gzip
189-
190-
- name: Upload Release Asset Darwin (aarch64)
191-
uses: actions/upload-release-asset@v1
192-
env:
193-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
194-
with:
195-
upload_url: ${{ steps.create_release.outputs.upload_url }}
196-
asset_path: artifacts/darwin-aarch64-${{matrix.llvm_version}}/llvm.tar.xz
197-
asset_name: llvm-darwin-aarch64.tar.xz
198-
asset_content_type: application/gzip
199-
200-
- name: Upload Release Asset Windows
201-
uses: actions/upload-release-asset@v1
202-
env:
203-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
150+
uses: softprops/action-gh-release@v2
204151
with:
205-
upload_url: ${{ steps.create_release.outputs.upload_url }}
206-
asset_path: artifacts/windows-amd64-${{matrix.llvm_version}}/llvm.tar.xz
207-
asset_name: llvm-windows-amd64.tar.xz
208-
asset_content_type: application/gzip
152+
name: Testing Release ${{ matrix.llvm_version }}
153+
tag_name: ${{ matrix.llvm_version }}
154+
files: upload/*

0 commit comments

Comments
 (0)