|
7 | 7 |
|
8 | 8 | jobs:
|
9 | 9 | build_release:
|
10 |
| - name: build_release |
11 | 10 | runs-on: ubuntu-latest
|
12 | 11 | steps:
|
13 |
| - - name: checkout |
14 |
| - uses: actions/checkout@v2 |
15 |
| - with: |
16 |
| - fetch-depth: 0 |
17 |
| - - name: make |
| 12 | + - name: Checkout |
| 13 | + uses: actions/checkout@v4 |
| 14 | + - name: Make |
18 | 15 | run: make
|
19 |
| - - name: version |
20 |
| - run: echo "::set-output name=version::$(echo 0.0)" |
21 |
| - id: version |
22 |
| - - name: build artifacts |
| 16 | + - name: Check |
| 17 | + run: make check |
| 18 | + - name: Create .tar.gz files |
23 | 19 | run: make artifacts
|
24 |
| - - name: release |
25 |
| - uses: actions/create-release@v1 |
26 |
| - id: create_release |
27 |
| - with: |
28 |
| - draft: true |
29 |
| - prerelease: false |
30 |
| - release_name: ${{ steps.version.outputs.version }} |
31 |
| - tag_name: ${{ github.ref }} |
32 |
| - env: |
33 |
| - GITHUB_TOKEN: ${{ github.token }} |
34 |
| - - name: upload linux artifact |
35 |
| - uses: actions/upload-release-asset@v1 |
36 |
| - env: |
37 |
| - GITHUB_TOKEN: ${{ github.token }} |
38 |
| - with: |
39 |
| - upload_url: ${{ steps.create_release.outputs.upload_url }} |
40 |
| - asset_path: ./linux-amd64.tar.gz |
41 |
| - asset_name: linux-amd64.tar.gz |
42 |
| - asset_content_type: application/gzip |
43 |
| - - name: upload generated C files |
44 |
| - uses: actions/upload-release-asset@v1 |
45 |
| - env: |
46 |
| - GITHUB_TOKEN: ${{ github.token }} |
| 20 | + - name: Release |
| 21 | + uses: softprops/action-gh-release@v2 |
| 22 | + if: startsWith(github.ref, 'refs/tags/') |
47 | 23 | with:
|
48 |
| - upload_url: ${{ steps.create_release.outputs.upload_url }} |
49 |
| - asset_path: ./cfiles.tar.gz |
50 |
| - asset_name: cfiles.tar.gz |
51 |
| - asset_content_type: application/gzip |
| 24 | + files: | |
| 25 | + tokenize-source.tar.gz |
| 26 | + tokenize-cfiles.tar.gz |
| 27 | + tokenize-linux-amd64.tar.gz |
0 commit comments