|
15 | 15 | runs-on: ${{ matrix.platform }} |
16 | 16 |
|
17 | 17 | steps: |
18 | | - - run: echo "${{ github.event.release.tag_name }}" |
19 | 18 | - uses: actions/checkout@v2 |
20 | 19 | with: |
21 | 20 | ref: ${{ github.event.release.tag_name }} |
|
25 | 24 | uses: pchynoweth/action-get-npm-version@master |
26 | 25 |
|
27 | 26 | - name: Validate version |
28 | | - run: echo "Wrong tag" |
| 27 | + run: exit |
29 | 28 | if: ${{ github.event.release.tag_name != format('{0}{1}', 'v', steps.package-version.outputs.version) }} |
30 | 29 |
|
31 | 30 | - name: Get current date |
|
56 | 55 | - run: npm run setup |
57 | 56 | - name: Fix lerna mess |
58 | 57 | run: node ./scripts/fix_lerna_backup.js |
59 | | - - run: OVERRIDE_BUILD_DATE=${{ steps.date.outputs.formattedTime }} npm run build |
| 58 | + - run: npm run build |
| 59 | + env: |
| 60 | + OVERRIDE_BUILD_DATE: '${{ steps.date.outputs.formattedTime }}' |
60 | 61 | - run: SKIP_HARDWARE_TEST=true npm run test |
61 | 62 | if: ${{ matrix.platform == 'ubuntu-16.04' }} |
62 | 63 |
|
|
66 | 67 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
67 | 68 | with: |
68 | 69 | upload_url: ${{ github.event.release.upload_url }} |
69 | | - asset_path: ljswitchboard-builder/kipling.3.2.0.${{ steps.date.outputs.formattedTime }}_linux64.tar.gz |
70 | | - asset_name: kipling.3.2.0.${{ steps.date.outputs.formattedTime }}_linux64.tar.gz |
| 70 | + asset_path: ljswitchboard-builder/kipling.${{ steps.package-version.outputs.version }}.${{ steps.date.outputs.formattedTime }}_linux64.tar.gz |
| 71 | + asset_name: kipling.${{ steps.package-version.outputs.version }}.${{ steps.date.outputs.formattedTime }}_linux64.tar.gz |
71 | 72 | asset_content_type: application/zip |
72 | 73 | if: ${{ matrix.platform == 'ubuntu-16.04' }} |
73 | 74 |
|
|
77 | 78 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
78 | 79 | with: |
79 | 80 | upload_url: ${{ github.event.release.upload_url }} |
80 | | - asset_path: ljswitchboard-builder/kipling.3.2.0.${{ steps.date.outputs.formattedTime }}_win64.zip |
81 | | - asset_name: kipling.3.2.0.${{ steps.date.outputs.formattedTime }}_win64.tar.gz |
| 81 | + asset_path: ljswitchboard-builder/kipling.${{ steps.package-version.outputs.version }}.${{ steps.date.outputs.formattedTime }}_win64.zip |
| 82 | + asset_name: kipling.${{ steps.package-version.outputs.version }}.${{ steps.date.outputs.formattedTime }}_win64.tar.gz |
82 | 83 | asset_content_type: application/zip |
83 | 84 | if: ${{ matrix.platform == 'windows-latest' }} |
84 | 85 |
|
|
88 | 89 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
89 | 90 | with: |
90 | 91 | upload_url: ${{ github.event.release.upload_url }} |
91 | | - asset_path: ljswitchboard-builder/kipling.3.2.0.${{ steps.date.outputs.formattedTime }}_mac64.zip |
92 | | - asset_name: kipling.3.2.0.${{ steps.date.outputs.formattedTime }}_mac64.tar.gz |
| 92 | + asset_path: ljswitchboard-builder/kipling.${{ steps.package-version.outputs.version }}.${{ steps.date.outputs.formattedTime }}_mac64.zip |
| 93 | + asset_name: kipling.${{ steps.package-version.outputs.version }}.${{ steps.date.outputs.formattedTime }}_mac64.tar.gz |
93 | 94 | asset_content_type: application/zip |
94 | 95 | if: ${{ matrix.platform == 'macos-latest' }} |
0 commit comments